forked from civictechindex/CTI-website-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
40 lines (38 loc) · 881 Bytes
/
docker-compose.yaml
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
version: '3.7'
services:
db:
# This matches our current Heroku database. Can upgrade to 13 when we upgrade on Heroku
image: postgres:12.6
container_name: "cti-db"
environment:
- POSTGRES_PASSWORD=cti_password
- POSTGRES_USER=cti
- POSTGRES_DB=cti
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- 15432:5432
web:
container_name: "cti-web"
build: .
command: python /code/manage.py runserver 0.0.0.0:8000
env_file: ./config/.env
volumes:
- .:/code
ports:
- 8888:8000
depends_on:
- db
# init:
# build: .
# command: /bin/sh ./init/provision.sh
# environment:
# - SU_USERNAME=username
# - SU_PASSWORD=password
# volumes:
# - .:/code
# depends_on:
# - db
volumes:
postgres_data: