docker-compose.yml 674 Bytes
Newer Older
1
2
version: '3.5'

Thom Wiggers's avatar
Thom Wiggers committed
3
4
services:
    postgres:
5
        image: postgres:11.1
Thom Wiggers's avatar
Thom Wiggers committed
6
7
        volumes:
            - /var/lib/postgresql/
Thom Wiggers's avatar
Thom Wiggers committed
8
9
10
        environment: &postgresvars
            POSTGRES_DB: thalia
    web:
11
        image: registry.hub.docker.com/thalia/concrexit
Thom Wiggers's avatar
Thom Wiggers committed
12
13
14
15
16
17
18
        build: .
        command: runserver 0.0.0.0:8000
        ports:
            - 8000:8000
        depends_on:
            - postgres
        volumes:
19
            - ./website:/usr/src/app/website/
20
            - concrexit:/concrexit/
21
        environment: &webvars
Thom Wiggers's avatar
Thom Wiggers committed
22
23
24
            <<: *postgresvars
            DJANGO_DEBUG: 'True'
            DJANGO_POSTGRES_HOST: postgres
25

Thom Wiggers's avatar
Thom Wiggers committed
26
volumes:
27
    concrexit:
Thom Wiggers's avatar
Thom Wiggers committed
28
        driver: local