version: '3'
services:
  app:
    image: juusechec/centos-symfony-postgis:latest
    privileged: true # obligatory for centos systemd!
    environment:
      #- SCRIPT_ON_RUN="/scripts/example-script-on-run.sh" # optional
      #- DATABASE_HOST="localhost"
      - DATABASE_PORT="15432"
      - DATABASE_NAME="sigma4c"
      - DATABASE_USER="sigma4c"
      - DATABASE_PASSWORD="abc123"
      - WEBSERVER_PORT="8008"
      - VARNISH_PORT="8009"
    ports:
      - 8008:8008
      - 8009:8009
      - 15432:15432
    volumes:
      # obligatory for centos systemd https://github.com/solita/docker-systemd/issues/1
      - /sys/fs/cgroup:/sys/fs/cgroup:ro
      # specific for project
      - ./src:/app:ro
      - ./sql:/sql:ro

version: '3'
services:
  app:
    image: juusechec/centos-symfony-postgis:latest
    privileged: true # obligatory for centos systemd!
    environment:
      - SCRIPT_ON_RUN=/sql/populate_database.sh # optional
      #- DATABASE_HOST="localhost"
      - DATABASE_PORT=15432
      - DATABASE_NAME=sigma4c
      - DATABASE_USER=sigma4c
      - DATABASE_PASSWORD=abc123
      - WEBSERVER_PORT=8008
      - VARNISH_PORT=8009
    ports:
      - 8008:8008
      - 8009:8009
      - 15432:15432
    volumes:
      # obligatory for centos systemd https://github.com/solita/docker-systemd/issues/1
      - /sys/fs/cgroup:/sys/fs/cgroup:ro
      # specific for project
      - ./src:/app:ro
      - ./sql:/sql:ro

Add script to populate automatically database!
Add script to populate automatically database!
