Skip to content

Commit

Permalink
yii-starter-kit#654. Create copy of docker-compose.yml for play with …
Browse files Browse the repository at this point in the history
…docker.
  • Loading branch information
Alfred committed Feb 23, 2019
1 parent 3663314 commit d436ba9
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions pwd-compose.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d436ba9

Please sign in to comment.