forked from OrcaCollective/OpenOversight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (34 loc) · 870 Bytes
/
docker-compose.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
version: "3.2"
services:
postgres:
restart: always
image: postgres:13
env_file:
- .env
environment:
POSTGRES_USER: openoversight
POSTGRES_DB: openoversight
volumes:
- postgres:/var/lib/postgresql/data
web:
restart: always
depends_on:
- postgres
image: ghcr.io/orcacollective/openoversight:${DB_IMAGE_TAG:-latest}
env_file:
- .env
environment:
FLASK_APP: OpenOversight.app
# Update with your application's respective Olson-style timezone:
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#list
TIMEZONE: "America/Chicago"
volumes:
- ./data:/data/
secrets:
- source: service-account-key
target: /usr/src/app/service_account_key.json
volumes:
postgres:
secrets:
service-account-key:
file: ./service_account_key.json