-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-dev-compose.yml
61 lines (56 loc) · 1.49 KB
/
docker-dev-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
services:
app:
container_name: cncnet_ladder_app
build:
args:
user: ${HOST_USER}
uid: ${HOST_UID}
debug: 1
context: .
dockerfile: ./docker/Dockerfile
env_file: ./cncnet-api/.env
volumes:
- ./cncnet-api:/home/${HOST_USER}/site
networks:
- cncnet
nginx:
image: nginx:stable-alpine
container_name: cncnet_ladder_nginx
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./cncnet-api:/home/${HOST_USER}/site
- ./docker/nginx/templates:/etc/nginx/templates/
environment:
NGINX_ENVSUBST_TEMPLATE_SUFFIX: ".conf"
HOST_USER: ${HOST_USER}
networks:
- cncnet
mysql:
image: mariadb:latest
container_name: cncnet_ladder_mysql
restart: always
ports:
- "3307:3306"
env_file: ./cncnet-api/.env
volumes:
- cncnet-ladder-db:/var/lib/mysql
- ./docker/mysql/init.sql:/docker-entrypoint-initdb.d/init.sql # Import latest db tables on init
networks:
- cncnet
phpmyadmin:
image: phpmyadmin
restart: always
env_file: ./cncnet-api/.env
ports:
- 8080:80
networks:
- cncnet
networks:
cncnet:
driver: bridge
volumes:
cncnet-ladder-db:
driver: local