docker-compose.yml 655 Bytes
Newer Older
Thom Wiggers's avatar
Thom Wiggers committed
1
2
3
4
version: '2'
services:
    postgres:
        image: postgres
Thom Wiggers's avatar
Thom Wiggers committed
5
6
        volumes:
            - /var/lib/postgresql/
Thom Wiggers's avatar
Thom Wiggers committed
7
8
9
        environment: &postgresvars
            POSTGRES_DB: thalia
    web:
Thom Wiggers's avatar
Thom Wiggers committed
10
        image: registry.gitlab.com/thaliawww/concrexit
Thom Wiggers's avatar
Thom Wiggers committed
11
12
13
14
15
16
17
        build: .
        command: runserver 0.0.0.0:8000
        ports:
            - 8000:8000
        depends_on:
            - postgres
        volumes:
18
            - ./website:/usr/src/app/website/
19
            - concrexit:/concrexit/
Thom Wiggers's avatar
Thom Wiggers committed
20
21
22
23
        environment:
            <<: *postgresvars
            DJANGO_DEBUG: 'True'
            DJANGO_POSTGRES_HOST: postgres
Thom Wiggers's avatar
Thom Wiggers committed
24
volumes:
25
    concrexit:
Thom Wiggers's avatar
Thom Wiggers committed
26
        driver: local