-
Notifications
You must be signed in to change notification settings - Fork 0
/
production.yml
110 lines (101 loc) · 2.23 KB
/
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: "3.8"
services:
postgres:
image: postgis/postgis
environment:
POSTGRES_USER: $DB_USER
POSTGRES_PASSWORD: $DB_PASSWORD
POSTGRES_DB: smart
volumes:
- pgdata:/var/lib/postgresql/data
- ./postgres:/docker-entrypoint-initdb.d
postgraphile:
build:
context: ./postgraphile
environment:
- DB_USER
- DB_PASSWORD
- DB_HOST
- JWT_SECRET
depends_on:
- postgres
ingest:
build:
context: ./python/ingest_server
environment:
- DB_USER
- DB_PASSWORD
- DB_HOST
volumes:
- ./data:/data:z
depends_on:
- postgres
moviegen:
build:
context: ./python/moviegen
environment:
- DB_USER
- DB_PASSWORD
- DB_HOST
- RDWATCH_HOST
- RDWATCH_USERNAME
- RDWATCH_PASSWORD
volumes:
- ./data:/data:z
depends_on:
- postgres
geocode:
build:
context: ./python/geocode
environment:
- DB_USER
- DB_PASSWORD
- DB_HOST
- GEOCODIO_API_KEY
depends_on:
- postgres
nginx:
build:
context: ./frontend
args:
commit_hash: ${GITHUB_SHA}
ports:
- "$UI_PORT:80"
depends_on:
- postgraphile
volumes:
- ./data:/usr/share/nginx/html/data
- ./frontend/nginx/logs:/var/log/nginx
- ./letsencrypt:/etc/letsencrypt/
goaccess:
image: nginx
ports:
- "$GOACCESS_PORT:80"
volumes:
- ./goaccess/html:/usr/share/nginx/html
- ./goaccess/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- ./goaccess/nginx/htpasswd:/etc/nginx/.htpasswd
- ./letsencrypt:/etc/letsencrypt/
pgbackup:
container_name: postgres_backup
image: prodrigestivill/postgres-backup-local
restart: always
volumes:
- ./backup:/backups
links:
- postgres:postgres
depends_on:
- postgres
environment:
- POSTGRES_HOST=$DB_HOST
- POSTGRES_DB=smart
- POSTGRES_USER=$DB_USER
- POSTGRES_PASSWORD=$DB_PASSWORD
- POSTGRES_EXTRA_OPTS=-Z9 --blobs
- SCHEDULE=@every 6h00m00s
- BACKUP_KEEP_DAYS=7
- BACKUP_KEEP_WEEKS=12
- BACKUP_KEEP_MONTHS=6
- HEALTHCHECK_PORT=80
volumes:
pgdata: