-
-
Notifications
You must be signed in to change notification settings - Fork 100
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
43 lines (40 loc) · 1.01 KB
/
docker-compose.prod.yml
File metadata and controls
43 lines (40 loc) · 1.01 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
services:
fresco:
image: "ghcr.io/complexdatacollective/fresco:latest"
depends_on:
postgres:
condition: service_healthy
volumes:
- .:/app/next-app
restart: always
ports:
- 0:3000
networks:
- fresco_network
environment:
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/fresco
DATABASE_URL_UNPOOLED: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/fresco
env_file:
- .env
postgres:
image: postgres:16-alpine
restart: always
environment:
POSTGRES_DB: fresco
env_file:
- .env
volumes:
- postgres:/var/lib/postgresql/fresco_data
healthcheck:
test: ["CMD", "pg_isready", '-U', '${POSTGRES_USER}']
interval: 5s
timeout: 10s
retries: 5
networks:
- fresco_network
volumes:
postgres:
# Define a network, which allows containers to communicate
# with each other, by using their container name as a hostname
networks:
fresco_network: