-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (69 loc) · 1.57 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3.7'
services:
formio-api-app:
image: ryanwclark/formio-api
container_name: formio-api-app
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:formio.example.com
- traefik.port=80
- traefik.protocol=http
- traefik.docker.network=proxy
- traefik.backend=formio-api-app
volumes:
- ./templates:/app/templates
environment:
- VIRTUAL_HOST=formio.example.com
- VIRTUAL_NETWORK=proxy
- VIRTUAL_PORT=3001
- LETSENCRYPT_HOST=formio.example.com
- LETSENCRYPT_EMAIL=email@example.com
- ZABBIX_HOSTNAME=formio-app
- DB_HOST=formio-db-mongo
- ROOT_EMAIL=admin@example.com
- ROOT_PASS=password
- DEBUG_MODE=FALSE
- PROJECT_TEMPLATE=default
networks:
- proxy
- internal
- services
restart: always
formio-db-mongo:
image: mongo
container_name: formio-db-mongo
volumes:
- ./db:/data/db
command: mongod --smallfiles
environment:
- ZABBIX_HOSTNAME=formio-db-mongo
networks:
- internal
- services
restart: unless-stopped
formio-db-mongo-backup:
image: ryanwclark/db-backup
container_name: formio-db-mongo-backup
links:
- formio-db-mongo
volumes:
- ./dbbackup:/backups
environment:
- DB_TYPE=mongo
- DB_HOST=formio-db-mongo
- DB_DUMP_FREQ=1440
- DB_DUMP_BEGIN=0000
- DB_CLEANUP_TIME=8640
- MD5=TRUE
- COMPRESSION=GZ
networks:
- internal
- services
restart: always
networks:
proxy:
external: true
internal:
external: false
services:
external: true