-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·82 lines (81 loc) · 1.58 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3.3'
services:
php-fpm:
container_name: 'boilerplate-php-fpm'
build:
context: ./
dockerfile: ./docker/php-fpm/Dockerfile
volumes:
- ./:/app
ports:
- '9000:9000'
networks:
- overlay
composer:
container_name: 'boilerplate-composer'
restart: 'no'
image: composer/composer:php7
networks:
- overlay
volumes:
- .:/app
command: 'install --ignore-platform-reqs'
db:
container_name: 'boilerplate-db'
image: mysql:5.7
volumes:
- db-data:/var/lib/mysql
restart: always
networks:
- overlay
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=boilerplate
nginx:
container_name: 'boilerplate-nginx'
image: nginx:1.15.5
ports:
- '8080:80'
environment:
- NGINX_PORT=80
volumes:
- ./:/app
- ./docker/nginx/nginx_app.conf:/etc/nginx/conf.d/app.conf
networks:
- overlay
redis:
container_name: 'boilerplate-redis'
image: redis:5.0-rc6
command: ["redis-server", "--appendonly", "yes"]
ports:
- '6379:6379'
expose:
- '6379'
networks:
- overlay
node:
container_name: 'boilerplate-node'
build:
context: './'
dockerfile: 'docker/node/Dockerfile'
working_dir: /app
environment:
- NODE_ENV=dev
- DEV_SERVER_PORT=3001
volumes:
- ./:/app
ports:
- '3001:3001'
expose:
- '3001'
command: >
sh -c '
yarn
yarn dev
'
networks:
- overlay
volumes:
db-data:
networks:
overlay: