-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
36 lines (33 loc) · 774 Bytes
/
compose.dev.yaml
File metadata and controls
36 lines (33 loc) · 774 Bytes
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
services:
nginx:
image: nginx:1.21-alpine
ports:
- "8000:8000"
volumes:
- ./config/nginx.conf:/etc/nginx/nginx.conf:ro
networks:
- codepair_network
extra_hosts:
- "host.docker.internal:host-gateway"
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: your_username
POSTGRES_PASSWORD: your_password
POSTGRES_DB: your_database_name
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- codepair_network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U your_username -d your_database_name"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data:
networks:
codepair_network:
driver: bridge