-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
68 lines (64 loc) · 1.68 KB
/
Copy pathcompose.yml
File metadata and controls
68 lines (64 loc) · 1.68 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
61
62
63
64
65
66
67
68
services:
postgres:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_DB: pulseflag
POSTGRES_USER: pulseflag
POSTGRES_PASSWORD: pulseflag
volumes:
- pulseflag-postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U pulseflag -d pulseflag"]
interval: 5s
timeout: 3s
retries: 10
redis:
image: redis:7-alpine
restart: unless-stopped
command: ["redis-server", "--appendonly", "yes"]
volumes:
- pulseflag-redis:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
api:
build:
context: .
dockerfile: Dockerfile.api
image: pulseflag-api:0.1.0
restart: unless-stopped
environment:
NODE_ENV: production
PULSEFLAG_API_HOST: 0.0.0.0
PULSEFLAG_API_PORT: 8080
DATABASE_URL: postgresql://pulseflag:pulseflag@postgres:5432/pulseflag
REDIS_URL: redis://redis:6379
PULSEFLAG_ADMIN_TOKEN: ${PULSEFLAG_ADMIN_TOKEN:?Set PULSEFLAG_ADMIN_TOKEN}
PULSEFLAG_ALLOWED_ORIGINS: ${PULSEFLAG_ALLOWED_ORIGINS:-http://localhost:3000}
LOG_LEVEL: info
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
ports:
- "8080:8080"
stop_grace_period: 15s
web:
build:
context: .
dockerfile: Dockerfile.web
args:
NEXT_PUBLIC_PULSEFLAG_API_URL: ${NEXT_PUBLIC_PULSEFLAG_API_URL:-http://localhost:8080}
image: pulseflag-web:0.1.0
restart: unless-stopped
depends_on:
- api
ports:
- "3000:3000"
volumes:
pulseflag-postgres:
pulseflag-redis: