docker-compose.yml 757 Bytes
Newer Older
Odair M.'s avatar
Odair M. committed
1 2 3
version: '3'
services:
    db:
4
        container_name: adega_db_1
Odair M.'s avatar
Odair M. committed
5 6 7 8 9 10
        image: postgres
        environment:
            - POSTGRES_USER=adega
            - POSTGRES_PASSWORD=adega
            - POSTGRES_DB=adega
    web:
11
        container_name: adega_web_1
12
        build:
13 14
            context: .
            dockerfile: ./docker_scripts/Dockerfile
15
        command: bash "./docker_scripts/on_docker_init.sh"
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
24 25 26 27 28
        environment:
            - POSTGRES_USER=adega
            - POSTGRES_PASSWORD=adega
            - POSTGRES_DB=adega
            - POSTGRES_HOST=adega_db_1
29
            - VERSION=DEVELOPMENT