-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (59 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
65 lines (59 loc) · 1.44 KB
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
version: '3.8'
networks:
report_api:
services:
mysql:
container_name: report_api_mysql
image: mysql:8
restart: unless-stopped
tty: true
ports:
- '3306:3306'
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD_ROOT}
SERVICE_TAG: dev
SERVICE_NAME: mysql
networks:
- report_api
nginx:
container_name: report_api_nginx
image: nginx:stable-alpine
ports:
- '8080:80'
- '9001:9001'
volumes:
- .:/var/www/html
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
- mysql
networks:
- report_api
php:
container_name: report_api_php
build:
context: .
dockerfile: docker/php/Dockerfile
volumes:
- .:/var/www/html
ports:
- '9000:9000'
networks:
- report_api
cron:
container_name: report_api_cron
build:
context: .
dockerfile: docker/cron/Dockerfile
volumes:
- .:/var/www/html
depends_on:
- php
- mysql
networks:
- report_api
volumes:
db_data: {}