-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (83 loc) · 1.76 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
version: "3.*"
name: poegamblinghelper
services:
api:
container_name: poegamblinghelper-api
image: registry.swerik.dev/poegamblinghelper/api
depends_on:
- database
networks:
- default
environment:
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: true
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
restart: unless-stopped
deploy:
mode: replicated
replicas: 1
resources:
limits:
cpus: '1'
memory: '2000M'
reservations:
cpus: '0.1'
memory: '400M'
logging:
driver: 'json-file'
options:
max-size: '10M'
max-file: '10'
database:
container_name: poegamblinghelper-database
image: postgres:15
volumes:
- /etc/databases/poegamblinghelper:/var/lib/postgresql
networks:
- default
environment:
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
restart: unless-stopped
deploy:
mode: replicated
replicas: 1
resources:
limits:
cpus: '1'
memory: '2000M'
reservations:
cpus: '0.1'
memory: '400M'
logging:
driver: 'json-file'
options:
max-size: '10M'
max-file: '10'
web:
container_name: poegamblinghelper-web
image: registry.swerik.dev/poegamblinghelper/web
depends_on:
- api
networks:
- default
- proxy
restart: unless-stopped
deploy:
mode: replicated
replicas: 1
resources:
limits:
cpus: '0.5'
memory: '200M'
reservations:
cpus: '0.1'
memory: '50M'
logging:
driver: 'json-file'
options:
max-size: '500k'
max-file: '10'
networks:
default:
driver: bridge
proxy:
external: true