docker-compose.yml 661 Bytes
Newer Older
Odair M.'s avatar
Odair M. committed
1
2
3
4
5
6
7
8
9
10
version: '3'
services:
    db:
        image: postgres
        environment:
            - POSTGRES_USER=adega
            - POSTGRES_PASSWORD=adega
            - POSTGRES_DB=adega
    web:
        build: .
11
12
13
14
15
        command: python3 ./src/manage.py makemigrations degree
        command: python3 ./src/manage.py makemigrations uploads
        command: python3 ./src/manage.py makemigrations educator
        command: python3 ./src/manage.py migrate
        command: python3 ./src/manage.py runserver 0.0.0.0:8000
Odair M.'s avatar
Odair M. committed
16
17
18
19
20
21
22
23
        volumes:
            - .:/adega
        ports:
            - "8000:8000"
        links:
            - db
        depends_on:
            - db