docker-compose.yml 1.04 KB
Newer Older
1 2
version: '3.3'
services:
3 4 5 6 7 8 9 10 11 12 13
    blendb-postgres:
        image: postgres:10
        container_name: postgres
        environment:
            POSTGRES_PASSWORD: passwd
            PGDATA: /var/lib/postgresql/docker/pgdata
        ports:
           - 5432:5432
        restart: unless-stopped
        security_opt:
           - no-new-privileges
14 15
    blendb:
        image: marula.c3sl.ufpr.br:5000/c3sl/blendb:latest
16
        build: .
17 18
        container_name: blendb
        environment:
19 20 21 22 23 24 25 26 27 28 29
            BLENDB_DB_USER: postgres
            BLENDB_DB_PASSWORD: passwd
            BLENDB_DB_NAME: postgres
            BLENDB_DB_HOST: postgres
            BLENDB_DB_PORT: 5432
            BLENDB_ADAPTER: postgres
            BLENDB_SCHEMA_FILE: config/config.yaml.example
            PORT: 3000
        ports:
            - 3000:3000
        command: ["yarn","test-mode"]
30 31 32 33
        restart: unless-stopped
        read_only: 'true'
        security_opt:
            - no-new-privileges
34 35 36 37
        volumes:
            -
                type: tmpfs
                target: /tmp