-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (54 loc) · 1.34 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
version: "3.3"
services:
app:
build:
args:
user: ${HOST_USER}
uid: ${HOST_UID}
context: .
dockerfile: ./docker/Dockerfile
env_file: ./src/.env
restart: always
volumes:
- ./src:/home/${HOST_USER}/site
networks:
- cnccommunity
nginx:
image: nginx:stable-alpine
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./src:/home/${HOST_USER}/site
- ./docker/nginx/templates:/etc/nginx/templates/
environment:
NGINX_ENVSUBST_TEMPLATE_SUFFIX: ".conf"
HOST_USER: ${HOST_USER}
networks:
- cnccommunity
mysql:
image: mariadb:latest
restart: always
env_file: ./src/.env
volumes:
- ./docker/mysql/init:/docker-entrypoint-initdb.d
- cnc-community-db:/var/lib/mysql
networks:
- cnccommunity
db-backup:
env_file: ./src/.env
image: tiredofit/db-backup
volumes:
- ./backups:/backup
restart: always
links:
- mysql
networks:
- cnccommunity
networks:
cnccommunity:
driver: bridge
volumes:
cnc-community-db:
driver: local