-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
45 lines (42 loc) · 1.02 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
45 lines (42 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
40
41
42
43
44
45
services:
postgres:
image: postgres:16-alpine
container_name: deployer-postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: deployer
POSTGRES_DB: deployer
ports:
- "${POSTGRES_PUBLISH_PORT:-5432}:5432"
volumes:
- deployer_pg:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d deployer"]
interval: 2s
timeout: 3s
retries: 30
redis:
image: redis:7-alpine
container_name: deployer-redis
command: ["redis-server", "--appendonly", "yes"]
ports:
- "${REDIS_PUBLISH_PORT:-6480}:6379"
volumes:
- deployer_redis:/data
web:
build:
context: ./web
dockerfile: Dockerfile
args:
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:3000}
container_name: deployer-web
ports:
- "${WEB_PUBLISH_PORT:-3001}:3000"
environment:
NODE_ENV: production
depends_on:
- postgres
- redis
volumes:
deployer_pg:
deployer_redis: