--- # This file is part of Bob. # # Bob is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Bob is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with Bob. If not, see . version: "3" services: db: image: "postgres:alpine" container_name: "db" environment: - POSTGRES_USER=bob - POSTGRES_DB=bob - POSTGRES_HOST_AUTH_METHOD=trust ports: - 5432:5432 networks: - bob_net resource-git: image: "bobcd/resource-git" container_name: "resource-git" ports: - "8000:8000" networks: - bob_net artifact-local: image: "bobcd/artifact-local" container_name: "artifact-local" ports: - "8001:8001" networks: - bob_net bob-node: image: "bobcd/bob" privileged: true depends_on: - db - resource-git - artifact-local environment: - BOB_DB_HOST=db - BOB_DB_PORT=5432 - BOB_DB_USER=bob - BOB_DB_NAME=bob - BOB_CONNECT_TIMEOUT=0 - BOB_READ_TIMEOUT=0 - BOB_WRITE_TIMEOUT=0 - BOB_CALL_TIMEOUT=0 expose: - "7777" networks: - bob_net bob: image: nginx:alpine container_name: "bob-lb" volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro depends_on: - bob-node ports: - "7777:7777" networks: - bob_net networks: bob_net: