forked from makeabilitylab/makeabilitylabwebsite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (36 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
37 lines (36 loc) · 1.04 KB
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
version: '3'
services:
db:
image: 'postgres'
restart: always
ports:
# if you want to expose the postgres instance to a tool on localhost, use this instead:
# see: https://stackoverflow.com/a/55259785
# - '6543:5432'
- '5432'
environment:
- POSTGRES_DB=makeability
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
volumes:
- postgres-data:/var/lib/postgresql/data
website:
build:
context: .
dockerfile: Dockerfile
restart: always
command: python3 manage.py runserver 0.0.0.0:8000
ports:
- '127.0.0.1:8571:8000'
volumes:
- .:/code
# you must comment out the following line for local host development
- /cse/web/research/makelab/www:/code/media
- /cse/web/research/makelab/secret/config.ini:/code/config.ini # for loading vars into ConfigParser in Django
depends_on:
- db
command: ["./docker-entrypoint.sh", "db", "python", "manage.py"]
links:
- "db:database"
volumes:
postgres-data: