-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
94 lines (93 loc) · 2.02 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
version: "3.9"
services:
mongo:
container_name: "mongo"
image: "mongo:5"
volumes:
- ./volumes/mongo:/data/db
networks:
- backend
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_USER}
MONGO_INITDB_ROOT_PASSWORD: ${DB_PASS}
cache:
image: redis:6.2-alpine
container_name: "cache"
command: redis-server --save 20 1 --loglevel notice
networks:
- backend
restart: always
capy:
container_name: "capy"
build:
context: ./CAPy
target: runner-image
args:
SECRET_KEY: ${SECRET_KEY}
CA_NAME: "Commander CA"
CA_CERT_DIR: "/opt/CAPy/CA"
PROXY_DOMAIN: ${PROXY_DOMAIN}
volumes:
- ./volumes/capy:/opt/CAPy/CA
networks:
- backend
restart: always
environment:
PUID: ${PUID}
PGID: ${PGID}
commander:
container_name: "commander"
build:
context: ./Commander
target: runner-image
args:
ADMIN_HASH: ${ADMIN_HASH}
APP_NAME: ${APP_NAME}
CA_HOSTNAME: "capy"
DB_URI: mongodb://mongo
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
LOG_LEVEL: ${LOG_LEVEL}
REDIS_URI: redis://cache:6379
SECRET_KEY: ${SECRET_KEY}
UPLOADS_DIR: "/opt/commander/library/"
WORKERS: ${WORKERS}
WORKER_CONNECTIONS: ${WORKER_CONNECTIONS}
depends_on:
- cache
- capy
- mongo
volumes:
- ./volumes/commander/library:/opt/commander/library
networks:
- application
- backend
restart: always
environment:
PUID: ${PUID}
PGID: ${PGID}
nginx:
container_name: "nginx"
build:
context: ./Nginx
args:
PROXY_DOMAIN: ${PROXY_DOMAIN}
depends_on:
- commander
- capy
volumes:
- ./volumes/capy:/opt/CA:ro
networks:
- frontend
- application
ports:
- "443:443"
restart: always
environment:
PUID: ${PUID}
PGID: ${PGID}
networks:
frontend:
application:
backend: