Repository navigation
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
127 lines (122 loc) · 2.98 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
127 lines (122 loc) · 2.98 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
services:
postgres:
image: postgres:17
environment:
POSTGRES_USER: decompme
POSTGRES_PASSWORD: decompme
ports:
- "5432:5432"
volumes:
- ./postgres:/var/lib/postgresql/data
- ./pgdump:/pgdump
restart: unless-stopped
cromper:
build:
context: cromper
target: dev
cap_drop:
- all
cap_add:
- setuid
- setgid
- setfcap
devices:
- /dev/kvm:/dev/kvm
env_file:
- cromper/docker.dev.env
restart: unless-stopped
security_opt:
- apparmor=unconfined
- seccomp=unconfined
volumes:
- ./cromper:/cromper
- ./cromper/compilers:/cromper/compilers
- ./cromper/libraries:/cromper/libraries
tmpfs:
- /sandbox/tmp:exec,uid=1000,gid=1000,size=256M,mode=0700
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8888/healthz" ]
interval: 15s
timeout: 3s
retries: 10
start_period: 20s
cromper-proxy:
build:
context: cromper-proxy
depends_on:
cromper:
condition: service_healthy
ports:
- "8888:8888"
restart: unless-stopped
volumes:
- ./cromper-proxy/cromper-upstream.dev.conf:/etc/nginx/conf.d/runtime/cromper-upstream.conf:ro
healthcheck:
test: [ "CMD", "wget", "-q", "--spider", "http://127.0.0.1:8888/healthz" ]
interval: 15s
timeout: 3s
retries: 10
start_period: 5s
backend:
build:
context: backend
target: dev
env_file:
- backend/docker.dev.env
depends_on:
cromper-proxy:
condition: service_healthy
environment:
CROMPER_URL: http://cromper-proxy:8888
ports:
- "8000:8000"
- "5678:5678" # vscode debugger
restart: unless-stopped
volumes:
- ./backend:/backend
healthcheck:
test: [ "CMD", "wget", "-q", "--spider", "http://localhost:8000/api/healthz" ]
interval: 15s
timeout: 3s
retries: 10
start_period: 20s
frontend:
build:
context: frontend
target: dev
environment:
API_BASE: /api
INTERNAL_API_BASE: http://backend:8000/api
INTERNAL_CROMPER_BASE: http://cromper-proxy:8888
ports:
- "8080:8080"
restart: unless-stopped
volumes:
- ./frontend:/frontend
- .env:/.env
healthcheck:
test: [ "CMD", "wget", "-q", "--spider", "http://localhost:8080/healthz" ]
interval: 15s
timeout: 3s
retries: 10
start_period: 20s
nginx:
build:
context: nginx
healthcheck:
test: [ "CMD", "wget", "-q", "--spider", "http://127.0.0.1/nginx-healthz" ]
interval: 15s
timeout: 3s
retries: 10
start_period: 5s
depends_on:
cromper-proxy:
condition: service_healthy
ports:
- "80:80"
restart: unless-stopped
volumes:
- ./nginx/development/:/etc/nginx/conf.d/:ro
- ./frontend/down.html:/var/www/down.html:ro
- ./backend/media:/media
- ./backend/static:/var/www/static