forked from lucyparsons/OpenOversight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (42 loc) · 1.11 KB
/
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
39
40
41
42
43
44
45
version: "3"
volumes:
postgres:
driver: local
services:
postgres:
restart: always
image: postgres:latest
environment:
POSTGRES_USER: openoversight
POSTGRES_PASSWORD: terriblepassword
POSTGRES_DB: openoversight-dev
volumes:
- postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
web:
restart: always
build:
context: .
args:
- DOCKER_BUILD_ENV
- TRAVIS_PYTHON_VERSION
dockerfile: ./dockerfiles/web/Dockerfile
environment:
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID}"
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY}"
AWS_DEFAULT_REGION: "${AWS_DEFAULT_REGION}"
S3_BUCKET_NAME: "${S3_BUCKET_NAME}"
APPROVE_REGISTRATIONS: "${APPROVE_REGISTRATIONS}"
FLASK_APP: app
FLASK_ENV: "${FLASK_ENV:-development}"
volumes:
- ./OpenOversight/:/usr/src/app/OpenOversight/:z
user: "${UID:?Docker-compose needs UID set to the current user id number. Try 'export UID' and run docker-compose again}"
links:
- postgres:postgres
expose:
- "3000"
command: scripts/entrypoint.sh
ports:
- "3000:3000"