-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 1.02 KB
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (37 loc) · 1.02 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
services:
api:
build: .
ports: ['3001:3001']
environment:
DATABASE_URL: postgres://dev:dev@db:5432/costanalyzer
REDIS_URL: redis://redis:6379
JWT_SECRET: change_me_at_least_32_chars_long!!
NODE_ENV: production
LOG_LEVEL: debug
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
GOOGLE_CALLBACK_URL: ${GOOGLE_CALLBACK_URL}
depends_on:
db: { condition: service_healthy }
redis: { condition: service_healthy }
restart: unless-stopped
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: dev
POSTGRES_PASSWORD: dev
POSTGRES_DB: costanalyzer
ports: ['5433:5432']
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U dev -d costanalyzer']
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
ports: ['6380:6379']
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 5s
timeout: 3s
retries: 5