-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (35 loc) · 988 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (35 loc) · 988 Bytes
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
version: '3'
services:
db:
image: "${POSTGRES_IMAGE:-postgres}" # Can be set in rebuildanddeploy.sh, or defaults to: https://hub.docker.com/_/postgres
restart: always
ports:
- '127.0.0.1:8623:5432'
environment:
- POSTGRES_DB=makeability
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
volumes:
- db-data:/var/lib/postgresql/data
website:
environment:
- DJANGO_ENV=${DJANGO_ENV:-TEST}
build:
context: .
dockerfile: Dockerfile
restart: always
ports:
- '127.0.0.1:8571:8000'
volumes:
- .:/code
- ${MEDIA_PATH:-./media}:/code/media
- ${CONFIG_PATH:-./config-dev.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:
db-data:
external:
name: "makeabilitylabcswashingtonedu_${POSTGRES_VOLUME:-postgres-data}"