-
Notifications
You must be signed in to change notification settings - Fork 88
/
docker-compose.production.yml
58 lines (53 loc) · 1.2 KB
/
docker-compose.production.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: "3"
services:
app: &app
image: ghcr.io/vas3k/infomate:${GITHUB_SHA:-latest}
command: make docker-run-app
container_name: infomate_app
environment:
- MODE=production
- PYTHONUNBUFFERED=1
- DEBUG=false
- APP_HOST=https://infomate.club
- POSTGRES_DB=infomate
- POSTGRES_USER=vas3k
- POSTGRES_PASSWORD=vas3k
- POSTGRES_HOST=postgres
env_file:
- .env
restart: always
ports:
- "127.0.0.1:8816:8816"
logging:
driver: "json-file"
options:
max-size: "100M"
cron:
<<: *app
command: make docker-run-cron
container_name: infomate_cron
depends_on:
- app
ports: []
logging:
driver: "json-file"
options:
max-size: "100M"
postgres:
image: postgres:15
container_name: infomate_postgres
restart: always
environment:
POSTGRES_USER: vas3k
POSTGRES_PASSWORD: vas3k
POSTGRES_DB: infomate
volumes:
- /home/vas3k/pgdata/infomate:/var/lib/postgresql/data:rw
migrate_and_init:
<<: *app
container_name: infomate_init_feeds
restart: "no"
ports: []
depends_on:
- app
command: make feed_init feed_refresh