-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose.yml
54 lines (53 loc) · 1.06 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
services:
server:
image: server
build:
context: .
dockerfile: ./server/Dockerfile
ports:
- ${SERVER_PORT}:${SERVER_PORT}
volumes:
- /etc/letsencrypt:/etc/letsencrypt
- ./.env:/app/.env
environment:
SERVER_ENV: ${SERVER_ENV}
restart: unless-stopped
deploy:
resources:
limits:
cpus: '0.2'
memory: 100M
simulation:
build:
context: .
dockerfile: ./simulation/Dockerfile
volumes:
- ./.env:/app/.env
restart: unless-stopped
deploy:
resources:
limits:
cpus: '0.2'
memory: 200M
db:
image: postgres:15.1-alpine
ports:
- 5432:5432
volumes:
- rides-db:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
command:
- "-c"
- "shared_buffers=64MB"
- "-c"
- "effective_cache-size=64MB"
restart: unless-stopped
deploy:
resources:
limits:
cpus: '0.2'
memory: 300M
volumes:
rides-db:
external: true