-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocal-compose.yml
More file actions
60 lines (57 loc) · 1.45 KB
/
local-compose.yml
File metadata and controls
60 lines (57 loc) · 1.45 KB
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
services:
ks_api:
container_name: api
build:
context: .
dockerfile: local-dockerfile
volumes:
- ./src:/api/src
restart: always
ports:
- ${SERVER_PORT}:${SERVER_PORT}
depends_on:
ks_db:
condition: service_healthy
redis-server:
condition: service_healthy
networks:
- local-network
deploy:
resources:
limits:
cpus: '1'
memory: 2048M
ks_db:
image: postgis/postgis:15-3.4
restart: always
container_name: db
environment:
POSTGRES_USER: ${DATABASE_USERNAME}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: ${DATABASE_NAME}
TZ: Asia/Seoul
healthcheck:
test: ['CMD', 'pg_isready', '-U', 'postgres']
timeout: 20s
retries: 10
ports:
- ${DATABASE_PORT}:${DATABASE_PORT}
networks:
- local-network
redis-server:
image: redis
container_name: redis-server
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 30s
timeout: 10s
retries: 5
ports:
- '6379:6379'
networks:
- local-network
volumes:
db:
networks:
local-network:
driver: bridge