-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (41 loc) · 1.06 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
46
47
version: '3.2'
services:
# app:
# build: .
# user: nobody
# hostname: app
# depends_on:
# - db
# ports:
# - "8080:8080"
# # command: ["./wait-for-it.sh", "db:5432", "--", "python", "run.py"]
# command: ["./wait-for-it.sh", "db:5432", "-t", "3", "--", "gunicorn", "-b", ":8080", "wsgi.py"]
# env_file: .env
# environment:
# - DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db/${POSTGRES_DB}
# working_dir: /src
# volumes:
# - ./:/src
# worker:
# build: .
# user: nobody
# hostname: app
# depends_on:
# - db
# - app
# command: ["./wait-for-it.sh", "db:5432", "--", "python", "coalics/schedule.py"]
# env_file: .env
# environment:
# - DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db/${POSTGRES_DB}
# - COALICS_CSRF_KEY=DUMMYDEBUGVALUE
db:
image: 'postgres:10-buster'
env_file: .env
ports:
- "5432:5432"
environment:
- PGDATA=/pgdata
volumes:
- pgdata:/pgdata
volumes:
pgdata: