docker-compose.yml 740 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
18
        build: .
        command: runserver 0.0.0.0:8000
        ports:
            - 8000:8000
        depends_on:
            - postgres
        volumes:
            - ./website:/usr/src/app
Thom Wiggers's avatar
Thom Wiggers committed
19
            - /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
25
26
27
28
29
            MIGRATION_KEY: ${CONCREXIT_MIGRATION_KEY}
volumes:
    concrexit-media:
        driver: local
    concrexit-static:
        driver: local