-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
80 lines (74 loc) · 1.53 KB
/
docker-compose.yaml
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
services:
log:
image: amir20/dozzle:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 8080:8080
environment:
DOZZLE_BASE: /log
stop_grace_period: 0.5s
healthcheck:
test: ["CMD", "/dozzle", "healthcheck"]
interval: 3s
timeout: 30s
retries: 5
start_period: 30s
postgres:
image: postgres:latest
restart: unless-stopped
stop_grace_period: 1s
env_file:
- '.variables.env'
volumes:
- postgres_data:/data
app:
restart: unless-stopped
stop_grace_period: 500ms
environment:
PUBLIC_KERNEL_ORIGIN: http://kernel:8000
PG_CONNECTION_STRING: postgres://user:password@postgres:5432/spectral_db
build:
context: ./app
dockerfile: Dockerfile
volumes:
- ./app:/app
- node_modules:/app/node_modules/
expose:
- "5173"
depends_on:
- kernel
- postgres
nginx:
image: nginx:latest
restart: unless-stopped
stop_grace_period: 200ms
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- app
kernel:
restart: unless-stopped
stop_grace_period: 500ms
build:
context: ./kernel
dockerfile: Dockerfile
volumes:
- ./kernel:/kernel
- pip_cache:/kernel/.venv
expose:
- "8000"
depends_on:
- postgres
env_file:
- '.variables.env'
- '.apikeys.env'
volumes:
postgres_data:
node_modules:
pip_cache:
networks:
default:
external: false