zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

.docker-compose.templ (1909B)


      1 # Zenflows is designed to implement the Valueflows vocabulary,
      2 # written and maintained by srfsh <info@dyne.org>.
      3 # Copyright (C) 2021-2023 Dyne.org foundation <foundation@dyne.org>.
      4 #
      5 # This program is free software: you can redistribute it and/or modify
      6 # it under the terms of the GNU Affero General Public License as published by
      7 # the Free Software Foundation, either version 3 of the License, or
      8 # (at your option) any later version.
      9 #
     10 # This program is distributed in the hope that it will be useful,
     11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 # GNU Affero General Public License for more details.
     14 #
     15 # You should have received a copy of the GNU Affero General Public License
     16 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
     17 
     18 version: "3.8"
     19 services:
     20   srv:
     21     container_name: srv
     22     image: zenflows:latest
     23     build:
     24       context: ../
     25       dockerfile: devop/Dockerfile
     26       args:
     27         MIX_ENV: prod
     28     ports:
     29       - 8000:8000
     30     environment:
     31       ADMIN_KEY: @ADMIN_KEY
     32 
     33       DB_HOST: db
     34       DB_NAME: &db_name zenflows
     35       DB_USER: &db_user zenflows_dbuser
     36       DB_PASS: &db_pass @DB_PASS
     37       # DB_PORT: 5432
     38 
     39       ROOM_URI: http://zvmlet:3000
     40       ROOM_SALT: @ROOM_SALT
     41 
     42       GQL_AUTH_CALLS: "true"
     43       GQL_DEF_PAGE_SIZE: 50
     44       GQL_MAX_PAGE_SIZE: 100
     45     depends_on:
     46       - zvmlet
     47       - db
     48     stdin_open: true
     49     tty: true
     50   db:
     51     container_name: db
     52     image: postgres:12-alpine
     53     environment:
     54       POSTGRES_DB: *db_name
     55       POSTGRES_USER: *db_user
     56       POSTGRES_PASSWORD: *db_pass
     57     volumes:
     58       - /var/lib/postgresql/data
     59   zvmlet:
     60     container_name: zvmlet
     61     image: zvmlet:latest
     62     build:
     63       context: ../
     64       dockerfile: zencode/Dockerfile
     65     environment:
     66       HTTP_PORT: 3000
     67     volumes:
     68       - ../zencode/src:/app/contracts:ro