forked from PinSpace-Org/GistPin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) 路 1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (42 loc) 路 1 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
version: "3.9"
services:
postgres:
image: postgis/postgis:16-3.4-alpine
environment:
POSTGRES_USER: gistpin
POSTGRES_PASSWORD: gistpin
POSTGRES_DB: gistpin
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./infrastructure/docker/postgres-init.sql:/docker-entrypoint-initdb.d/01-init.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gistpin -d gistpin"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
backend:
build:
context: ./Backend
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
env_file:
- ./Backend/.env
environment:
NODE_ENV: development
DATABASE_HOST: postgres
DATABASE_PORT: "5432"
DATABASE_USER: gistpin
DATABASE_PASSWORD: gistpin
DATABASE_NAME: gistpin
volumes:
- ./Backend:/app
- /app/node_modules
depends_on:
postgres:
condition: service_healthy
volumes:
postgres_data: