From d436ba917201b665ad179035c0b357ffcffd4c7a Mon Sep 17 00:00:00 2001 From: Alfred Date: Sat, 23 Feb 2019 20:14:38 +0500 Subject: [PATCH] #654. Create copy of docker-compose.yml for play with docker. --- pwd-compose.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pwd-compose.yml diff --git a/pwd-compose.yml b/pwd-compose.yml new file mode 100644 index 000000000..b9990412a --- /dev/null +++ b/pwd-compose.yml @@ -0,0 +1,47 @@ +version: "3" + +services: + app: + build: docker/php + volumes: + - ./:/app + depends_on: + - db + - mailcatcher + env_file: + - .env + + webpacker: + image: node:9-alpine + working_dir: /app + volumes: + - ./:/app + command: /bin/true + + nginx: + image: nginx:1.12-alpine + ports: + - 80:80 + volumes: + - ./:/app + - ./docker/nginx/vhost.conf:/etc/nginx/conf.d/vhost.conf + depends_on: + - app + + mailcatcher: + image: schickling/mailcatcher:latest + ports: + - 1080:1080 + + db: + image: mysql:5.7 + volumes: + - /var/lib/mysql + - ./docker/mysql/config.cnf:/etc/mysql/conf.d/config.cnf + ports: + - 3306:3306 + environment: + MYSQL_ROOT_PASSWORD: root + MYSQL_DATABASE: yii2-starter-kit + MYSQL_USER: ysk_dbu + MYSQL_PASSWORD: ysk_pass