version: '3' services: caddy: container_name: spa_caddy build: .docker/caddy ports: - 80:80 - 443:443 volumes: - ./:/var/www/html - .docker/config/Caddyfile:/etc/caddy/Caddyfile - .docker/data/logs/caddy:/var/log/caddy:delegated depends_on: - php-fpm networks: - internal php-fpm: container_name: php_backend build: context: .docker/php-fpm volumes: - ./:/var/www/html:delegated - .docker/data/logs/php:/var/log/php:delegated env_file: - .env environment: - REPO_URL= - GEOSERVER_URL=geoserver_service - GEOSERVER_USERNAME=admin - GEOSERVER_PASSWORD=myawesomepw123 - GEONETWORK_URL= - GEONETWORK_API_KEY= - GEONETWORK_API_VERSION= - PG_USER= - PG_PASS= - PG_NAME= - PG_HOST= restart: unless-stopped expose: - 9000 networks: - internal geoserver: container_name: geoserver_service image: kartoza/geoserver environment: - GEOSERVER_ADMIN_USER=admin - GEOSERVER_ADMIN_PASSWORD=myawesomepw123 volumes: - geoserver_data:/opt/geoserver/data_dir expose: - 8081 ports: - "8081:8081" networks: - internal volumes: geoserver_data: networks: internal: