-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
49 lines (46 loc) · 1.06 KB
/
compose.yml
File metadata and controls
49 lines (46 loc) · 1.06 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
services:
# Main application service
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:8080
volumes:
# Mount App_Data directory for persistent data
- ./App_Data:/app/App_Data
# depends_on:
# - db
networks:
- ubixar-network
restart: unless-stopped
# PostgreSQL database service
db:
image: postgres:15
environment:
- POSTGRES_DB=gateway
- POSTGRES_USER=gateway
- POSTGRES_PASSWORD=gateway
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
# Optional: mount init scripts
- ./config/init-db.sh:/docker-entrypoint-initdb.d/init-db.sh:ro
networks:
- ubixar-network
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gateway -d gateway"]
interval: 30s
timeout: 10s
retries: 3
volumes:
postgres_data:
driver: local
networks:
ubixar-network:
driver: bridge