#   This configuration is the full-scale deployment config. Create
#   custom configurations to extend this for devleopment.

version: '2'
services:

    #
    #   Data stores
    #

    # [PostgreSQL] Database for Django API
    postgres:
        image: "postgres"
        ports:
            - "127.0.0.1:5432:5432"
        env_file: ".env"
        volumes:
            - /data/postgres:/var/lib/postgresql/data

    # [MongoDB] Datastore for microservies
    mongodb:
        image: "mongo"
        ports:
            - "127.0.0.1:27017:27017"
        volumes:
            - /data/mongodb:/data/db

    #
    #   Core apps
    #

    # [Django] Backend API (also has Nginx)
    api:
        image: "hackfsu/api"
        build: "./api"
        ports:
            - "127.0.0.1:8080:8080"

    # [Express] Webapp
    webapp:
        image: "hackfsu/webapp"
        build: "./webapp"
        ports:
            - "127.0.0.1:3000:3000"

#   This configuration is the full-scale deployment config. Create
#   custom configurations to extend this for devleopment.

version: '2'
services:

    #
    #   Data stores
    #

    # [PostgreSQL] Database for Django API
    postgres:
        image: "postgres"
        ports:
            - "127.0.0.1:5432:5432"
        env_file: ".env"
        volumes:
            - /data/postgres:/var/lib/postgresql/data
        restart: always

    # [MongoDB] Datastore for microservies
    mongodb:
        image: "mongo"
        ports:
            - "127.0.0.1:27017:27017"
        volumes:
            - /data/mongodb:/data/db

    #
    #   Core apps
    #

    # [Django] Backend API (also has Nginx)
    api:
        image: "hackfsu/api"
        build: "./api"
        ports:
            - "127.0.0.1:8080:8080"
        restart: always

    # [Express] Webapp
    webapp:
        image: "hackfsu/webapp"
        build: "./webapp"
        ports:
            - "127.0.0.1:3000:3000"
        restart: always

Add restart tag to DC config
Add restart tag to DC config
