docker-compose.yml 1.07 KB
version: "3.5"
services:

  dachs:
    container_name: dachs-voparis
    image: dachs-voparis

    tty: true
    expose:
      - "${DACHS_PORT}"
      - "${APACHE_PORT}"
      - "22"
    ports:
      - "2222:22"
      - "${DACHS_PORT}:${DACHS_PORT}"
      - "${APACHE_PORT}:${APACHE_PORT}"
    build:
      context: .
      dockerfile: dachs-dockerfile
      args:   
        - "VERSION=${VERSION}"
        - "GITREPO_SERVER=${GITREPO_SERVER}"        
        - "GITREPO_INSTITUTION=${GITREPO_INSTITUTION}"
        - "DACHS_PORT=${DACHS_PORT}"
        - "APACHE_PORT=${APACHE_PORT}"
        - "SERVERNAME=${SERVERNAME}"
        - "DOMAIN=${DOMAIN}"
        - "PROTOCOL=${PROTOCOL}"
    volumes:
      #- ../apache/cgi-bin:/home/dachsroot/apache/cgi-bin
      - ../apache/logapache:/var/log/apache2
      - ../apache/dachslogs:/var/gavo/logs
      
      # example if you need to mount volumes (e.g if your service needs to parse files or if you want to upload it through dachs)
      #- paht/to/data:/var/gavo/inputs/service/data
      
### To uncomment for production :
#    restart: always