-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
39 lines (38 loc) · 1.02 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
# NOTE: this will *NOT* be run on fly.io
# therefore this is entirely for development
version: "3.9"
services:
passzero:
build: .
image: 'passzero:latest'
container_name: passzero
environment:
# this is for accessing the postgres DB on the *host*
- DATABASE_URL=postgresql://postgres:[email protected]/passzero
# NOTE: this is fake (obviously)
- SENDGRID_API_KEY=x
# overwrite the value in Dockerfile
- FLASK_ENV=development
- GUNICORN_CREATE_TABLES=1
# if we're running in dev then we don't want SSL to be on
- NO_SSL=1
ports:
- "8000:8000"
volumes:
# host-mounted logs so easier to debug
- /var/log/passzero:/var/log/passzero
# depends_on:
# - db
# db:
# image: postgres:14.1-alpine
# restart: always
# volumes:
# - db:/var/lib/postgresql/data
# ports:
# - '5432:5432'
# environment:
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
# volumes:
# db:
# driver: local