-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
36 lines (34 loc) · 921 Bytes
/
docker-compose.yaml
File metadata and controls
36 lines (34 loc) · 921 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:
db:
image: postgres:18-alpine
restart: unless-stopped
environment:
POSTGRES_USER: ccinvoice
POSTGRES_PASSWORD: ccinvoice
POSTGRES_DB: ccinvoice
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ccinvoice"]
interval: 10s
timeout: 5s
retries: 5
app:
container_name: "ccinvoice"
build:
context: ./
dockerfile: dev.dockerfile
depends_on:
db:
condition: service_healthy
env_file:
- .env
environment:
DATABASE_URL: postgres://ccinvoice:ccinvoice@db:5432/ccinvoice?sslmode=disable
ports:
- 3000:3000
- 8080:8080
volumes:
postgres_data: