-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (42 loc) · 860 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (42 loc) · 860 Bytes
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
networks:
internal:
postgres:
external: true
services:
frontend:
image: jtools-frontend:3.20.0
container_name: jtools-frontend
build:
dockerfile: Dockerfile.frontend
ports:
- 8602:8602
networks:
- internal
deploy:
resources:
limits:
memory: 32M
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
backend:
image: jtools-backend:3.20.0
container_name: jtools-backend
build:
dockerfile: Dockerfile.backend
volumes:
- ./backend/config.toml:/app/config.toml:ro
networks:
- internal
- postgres
environment:
- PYTHONUNBUFFERED=1
deploy:
resources:
limits:
memory: 128M
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3