-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (30 loc) · 799 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (30 loc) · 799 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
services:
postgres:
image: postgres:16.9
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 10s
timeout: 5s
retries: 5
fileship:
build: .
ports:
- '3000:3000'
restart: unless-stopped
environment:
HOST: 0.0.0.0
PORT: 3000
DATABASE_URL: postgres://postgres:postgres@postgres/postgres
volumes:
- ./data:/fileship/data
depends_on:
- postgres
volumes:
pg_data: