-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
99 lines (98 loc) · 2.39 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: '3'
services:
app:
container_name: app
depends_on:
- mongo-primary
- mongo-secondary
- mongo-arbiter
image: scaffold:1.0.0
restart: on-failure
build:
context: .
dockerfile: dockerfile
environment:
- MAIL_URL
- ROOT_URL
- MONGO_URL
- STORAGE_PATH
- TZ
- PORT
- REFRESH_STATIC_PROFILES
- REFRESH_PERMISSIONS
- EMAIL_SERVICES
ports:
- 80:3000
volumes:
- $PWD/.uploads:/opt/app-files
networks:
- scaffold-net
ssl-proxy:
container_name: ssl-proxy
image: justsml/ssl-proxy:latest
environment:
- HTTPS_PORT=443
- SERVER_NAME=antware.dev
- UPSTREAM_TARGET=app:3000
- CERT_PUBLIC_PATH=/certs/fullchain.pem
- CERT_PRIVATE_PATH=/certs/privkey.pem
volumes:
- /certs:/certs:ro
depends_on:
- app
ports:
- 443:443
networks:
- scaffold-net
mongo-primary:
container_name: mongo-primary
image: bitnami/mongodb:6.0.4
restart: always
environment:
- MONGODB_ADVERTISED_HOSTNAME=mongo-primary
- MONGODB_REPLICA_SET_MODE=primary
- MONGODB_REPLICA_SET_NAME=rs0
- MONGODB_ROOT_PASSWORD
- MONGODB_REPLICA_SET_KEY
- MONGODB_USERNAME
- MONGODB_PASSWORD
- MONGODB_DATABASE
volumes:
- $PWD/data:/bitnami
- $PWD/database:/opt/database
networks:
- scaffold-net
mongo-secondary:
container_name: mongo-secondary
image: bitnami/mongodb:6.0.4
restart: always
depends_on:
- mongo-primary
environment:
- MONGODB_ADVERTISED_HOSTNAME=mongo-secondary
- MONGODB_REPLICA_SET_MODE=secondary
- MONGODB_REPLICA_SET_NAME=rs0
- MONGODB_INITIAL_PRIMARY_HOST
- MONGODB_INITIAL_PRIMARY_PORT_NUMBER
- MONGODB_INITIAL_PRIMARY_ROOT_PASSWORD
- MONGODB_REPLICA_SET_KEY
networks:
- scaffold-net
mongo-arbiter:
container_name: mongo-arbiter
image: bitnami/mongodb:6.0.4
restart: always
depends_on:
- mongo-primary
environment:
- MONGODB_ADVERTISED_HOSTNAME=mongo-arbiter
- MONGODB_REPLICA_SET_MODE=arbiter
- MONGODB_REPLICA_SET_NAME=rs0
- MONGODB_INITIAL_PRIMARY_HOST
- MONGODB_INITIAL_PRIMARY_PORT_NUMBER
- MONGODB_INITIAL_PRIMARY_ROOT_PASSWORD
- MONGODB_REPLICA_SET_KEY
networks:
- scaffold-net
networks:
scaffold-net: