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 (41 loc) 路 1.07 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (41 loc) 路 1.07 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:
backend:
build:
context: ../../Backend
dockerfile: ../infrastructure/docker/backend.Dockerfile
ports: ["3000:3000"]
environment:
NODE_ENV: production
DATABASE_HOST: postgres
DATABASE_PORT: "5432"
DATABASE_USER: gistpin
DATABASE_PASSWORD: gistpin
DATABASE_NAME: gistpin
depends_on:
postgres:
condition: service_healthy
frontend:
build:
context: ../../Frontend
dockerfile: ../infrastructure/docker/frontend.Dockerfile
ports: ["3001:80"]
depends_on: [backend]
postgres:
image: postgis/postgis:16-3.4-alpine
environment:
POSTGRES_USER: gistpin
POSTGRES_PASSWORD: gistpin
POSTGRES_DB: gistpin
ports: ["5432:5432"]
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gistpin -d gistpin"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
volumes:
- postgres_data:/var/lib/postgresql/data
- ./postgres-init.sql:/docker-entrypoint-initdb.d/01-init.sql:ro
volumes:
postgres_data: