# Copyright (c) 2016 by Niklaus Giger niklaus.giger@member.fsf.org # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public License v1.0 # which accompanies this distribution, and is available at # http:#www.eclipse.org/legal/epl-v10.html # # This is a setup for running tests # Security is not really a concern! # version: '2.0' services: dump: image: busybox:1.25.1 data: image: busybox:1.25.1 mysql_davaz: image: mysql:5.7 networks: private: volumes: - ${PWD}/dump:/docker-entrypoint-initdb.d - ./data:/var/lib/mysql environment: MYSQL_RANDOM_ROOT_PASSWORD: dummy MYSQL_USER: davaz MYSQL_PASSWORD: superSecretPassword MYSQL_DATABASE: davaz2 davaz: build: . networks: private: public: aliases: - davaz.com volumes: - ${PWD}/log:/opt/davaz.com/log depends_on: - mysql_davaz command: /opt/davaz.com/start_davaz_com.sh ports: - 8007:8007 environment: MYSQL_USER: davaz MYSQL_HOST: mysql_davaz MYSQL_PASSWORD: superSecretPassword MYSQL_DATABASE: davaz2 davaz2: build: . networks: private: public: aliases: - davaz.com volumes: - ${PWD}/log2:/opt/davaz.com/log depends_on: - mysql_davaz command: /opt/davaz.com/start_davaz_com.sh ports: - 8008:8007 environment: MYSQL_USER: davaz MYSQL_HOST: mysql_davaz MYSQL_PASSWORD: superSecretPassword MYSQL_DATABASE: davaz2 # TODO: move nginx into a container. Is this a good idea? # nginx: # image: nginx:1.11.7 # depends_on: # - davaz # ports: # - 80:80 # - 443:443 # volumes: # - ${PWD}/nginx:/etc/nginx/sites-enabled/ networks: public: private: