-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (44 loc) · 923 Bytes
/
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
# Development
services:
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
restart: unless-stopped
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
interval: 5s
timeout: 5s
retries: 5
volumes:
- pg_data:/var/lib/postgresql/data
ports:
- '${DB_PORT}:5432'
server:
build:
context: .
target: dev
dockerfile: Dockerfile
tty: true
stdin_open: true
restart: unless-stopped
env_file:
- .env
volumes:
- /app/node_modules
- .:/app:rw
ports:
- '${PORT}:${PORT}'
depends_on:
db:
condition: service_healthy
adminer:
image: adminer
restart: unless-stopped
ports:
- '8081:8080'
volumes:
pg_data:
driver: local