-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (53 loc) · 1.18 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.6'
networks:
application_network:
name: ${PREFIX}network
services:
php:
container_name: ${PREFIX}php
build:
args:
- USER_ID
context: ./build
dockerfile: Dockerfile
volumes:
- ${APP_SOURCE}:${APP_WORKING_DIR}
networks:
- application_network
depends_on:
- mysql
nginx:
image: nginx:latest
container_name: ${PREFIX}nginx
volumes:
- ${APP_SOURCE}:${APP_WORKING_DIR}
- ./build/conf/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- ${NGINX_PORT}:80
networks:
- application_network
depends_on:
- php
mysql:
image: mysql:${MYSQL_VERSION}
container_name: ${PREFIX}mysql
env_file:
- ./build/conf/mysql.env
volumes:
- db_data:/var/lib/mysql
ports:
- ${MYSQL_SERVICE_PORT}:3306
networks:
- application_network
admin:
image: phpmyadmin:latest
ports:
- ${PHPADMIN_SERVICE_PORT}:80
container_name: ${PREFIX}admin
env_file:
- ./build/conf/admin.env
networks:
- application_network
volumes:
db_data:
name: "${PREFIX}mysql_data"