-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (59 loc) · 1.33 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
services:
app:
build:
context: ./ez_decks
dockerfile: Dockerfile
container_name: nest_app
ports:
- '${NODEAPP_PORT}:${NODEAPP_PORT}'
- '5555:5555' # For prisma studio
depends_on:
- db
- queue
env_file:
- ./ez_decks/.env
- ./ez_decks/.env.${NODE_ENV}.local
volumes:
- ./ez_decks:/usr/src/app
- ./ez_decks/logs:/usr/src/app/logs
- type: tmpfs
target: ${NODE_TEMP_PATH:-/tmp}
# deploy:
# resources:
# limits:
# memory: 1G
# cpus: '0.5'
db:
image: postgres:16-bookworm
container_name: postgres_db
env_file:
- ./ez_decks/.env
- ./ez_decks/.env.${NODE_ENV}.local
ports:
- '${POSTGRES_PORT}:${POSTGRES_PORT}'
volumes:
- postgres_data:/var/lib/postgresql/data
deploy:
resources:
limits:
memory: 1G
cpus: '1'
queue:
image: redis:7.4.1-bookworm
container_name: redis_queue
env_file:
- ./ez_decks/.env
- ./ez_decks/.env.${NODE_ENV}.local
ports:
- '${REDIS_PORT}:${REDIS_PORT}'
volumes:
- type: tmpfs
target: /data
command: redis-server --port ${REDIS_PORT} --loglevel debug
deploy:
resources:
limits:
memory: 1G
cpus: '1'
volumes:
postgres_data: