-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
43 lines (41 loc) · 1.07 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
# Note that this docker-compose file is only for development!
#
# studentenportal:8000 ----- studentenportal-media:/srv/www/studentenportal/media
# || \
# || ---- ./:/srv/www/studentenportal/
# ||
# postgres ----- postgres-data:/var/lib/postgresql/data
#
version: '3.5'
services:
postgres_dev:
image: postgres:12
restart: always
environment:
POSTGRES_PASSWORD: "k9F1bbHiW4o9By1A6tvL"
POSTGRES_USER: "studentenportal"
networks:
- studentenportal-dev
studentenportal_dev:
image: studentenportal/dev:latest
build:
context: .
dockerfile: deploy/dev/Dockerfile
args:
- UID=${UID-1000}
- GID=${GID-1000}
volumes:
- ./:/srv/www/studentenportal
ports:
- 8000:8000
environment:
POSTGRES_HOST: "postgres_dev"
POSTGRES_USER: "studentenportal"
POSTGRES_PASSWORD: "k9F1bbHiW4o9By1A6tvL"
DJANGO_DEBUG: "True"
networks:
- studentenportal-dev
depends_on:
- postgres_dev
networks:
studentenportal-dev: