-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (60 loc) · 1.42 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
version: '3'
services:
mysql:
build:
context: .
dockerfile: ./docker/mysql/Dockerfile
environment:
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_DATABASE: 'reserbath_dev'
volumes:
- ./docker/mysql/tmp/mysql:/var/lib/mysql
- ./docker/mysql/my.cnf:/etc/mysql/conf.d/my.cnf
ports:
- "3306:3306"
redis:
build:
context: .
dockerfile: ./docker/redis/Dockerfile
php:
build:
context: .
dockerfile: ./docker/php/Dockerfile
environment:
DB_HOST: $DB_HOST
tty: true
stdin_open: true
volumes:
- .:/usr/src/reserbath-web
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
- ./docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
- /usr/src/reserbath-web/vendor
depends_on:
- mysql
- redis
- nodejs
- mailhog
nginx:
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/conf.d/reserbath.conf:/etc/nginx/conf.d/reserbath.conf
- ./public:/usr/src/reserbath-web/public
ports:
- "80:80"
depends_on:
- php
nodejs:
build:
context: .
dockerfile: ./docker/nodejs/Dockerfile
volumes:
- .:/usr/src/reserbath-web
- /usr/src/reserbath-web/node_modules
entrypoint: npm run dev
mailhog:
image: mailhog/mailhog
ports:
- "8025:8025"