docker-compose.yml 1.09 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
    blendb:
15 16
        # image: marula.c3sl.ufpr.br:5000/c3sl/blendb:latest
        image: blendb
17
        build: .
18 19
        container_name: blendb
        environment:
20 21
            BLENDB_SCHEMA_FILE: config/config.yaml.example
            PORT: 3000
22 23 24 25 26 27 28
            BLENDB_N_DB: 1
            BLENDB_DB0_USER: postgres
            BLENDB_DB0_NAME: postgres
            BLENDB_DB0_PASSWORD: passwd
            BLENDB_DB0_HOST: postgres
            BLENDB_DB0_PORT: 5432
            BLENDB_DB0_ADAPTER: postgres
29 30 31
        ports:
            - 3000:3000
        command: ["yarn","test-mode"]
32 33 34 35
        restart: unless-stopped
        read_only: 'true'
        security_opt:
            - no-new-privileges
36 37 38 39
        volumes:
            -
                type: tmpfs
                target: /tmp