-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
69 lines (62 loc) · 1.26 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
version: '3.9'
x-limits:
medium:
resources: &limits_medium
limits:
cpus: '0.64'
memory: 128M
reservations:
cpus: '0.32'
memory: 32M
small:
resources: &limits_small
limits:
cpus: '0.32'
memory: 64M
reservations:
cpus: '0.16'
memory: 32M
services:
pdf-sender-bot:
container_name: pdf-sender-bot
restart: unless-stopped
build:
context: pdf-sender-bot
networks:
- backend
deploy:
resources: *limits_small
pdf-sender-web:
container_name: pdf-sender-bot
restart: unless-stopped
build:
context: pdf-sender-web
volumes:
- ./infra/nginx.conf:/etc/nginx/nginx.conf:ro
- ./infra/ca.crt:/etc/nginx/ca.crt:ro
- ./infra/ca.key:/etc/nginx/ca.key:ro
ports:
- "443:443"
networks:
- backend
deploy:
resources: *limits_small
postgres:
container_name: postgres
restart: unless-stopped
image: postgres:15.2-alpine3.17
volumes:
- postgres:/var/lib/postgresql/data
env_file:
- ./infra/.env
networks:
- backend
deploy:
resources: *limits_medium
networks:
backend:
name: backend
volumes:
postgres:
name: postgres
driver: local