-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
31 lines (26 loc) · 817 Bytes
/
docker-compose.prod.yml
File metadata and controls
31 lines (26 loc) · 817 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
version: "3.8"
x-logging: &default-logging
options:
max-size: "10m"
max-file: "2"
driver: json-file
services:
backend:
command: gunicorn -w 4 -k uvicorn.workers.UvicornWorker app.api.server:app --bind 0.0.0.0:${BACKEND_PORT:?not set}
db:
volumes:
- myapp_pg_data_prod:/var/lib/postgresql/data/
- ./backend/.env:/backend/.env
- ./fts-postgres.conf:/etc/postgresql/postgresql.conf
- ./.psqlrc:/var/lib/postgresql/.psqlrc
pg_hero_prod:
image: ankane/pghero:latest
container_name: pg_hero_prod
network_mode: "host"
restart: always
environment:
DATABASE_URL: postgres://postgres:postgres@localhost:${DB_PORT:?not set}/postgres?sslmode=disable
PORT: ${PG_HERO_PORT:?not set}
logging: *default-logging
volumes:
myapp_pg_data_prod: