version: '3' networks: rauru_net: volumes: local_pgdata_rauru: pgadmin-data: services: app: container_name: rauru_app build: context: ./dockerfiles dockerfile: nginx.dockerfile args: - UID=${UID:-1000} - GID=${GID:-1000} ports: - "80:80" volumes: - ./src:/var/www/html:delegated depends_on: - php - redis - db - mailhog - pgadmin networks: - rauru_net db: image: postgres container_name: rauru_db ports: - "5432:5432" environment: POSTGRES_DB: rauru_db POSTGRES_USER: rauru_user POSTGRES_PASSWORD: secret volumes: - local_pgdata_rauru:/var/lib/postgresql/data #- ./rauru_pgdata:/var/lib/postgresql/data networks: - rauru_net pgadmin: image: dpage/pgadmin4 container_name: rauru_pgAdmin ports: - "5050:80" depends_on: - db environment: PGADMIN_DEFAULT_EMAIL: admin@example.de PGADMIN_DEFAULT_PASSWORD: secret volumes: - pgadmin-data:/var/lib/pgadmin #- ./pgadmindata:/var/lib/pgadmin networks: - rauru_net php: build: context: ./dockerfiles dockerfile: php.root.dockerfile args: - UID=${UID:-1000} - GID=${GID:-1000} container_name: rauru_php ports: - "9000:9000" volumes: - ./src:/var/www/html:delegated networks: - rauru_net redis: image: redis:alpine container_name: rauru_redis restart: unless-stopped ports: - "6379:6379" networks: - rauru_net composer: build: context: ./dockerfiles dockerfile: php.root.dockerfile args: - UID=${UID:-1000} - GID=${GID:-1000} container_name: rauru_composer volumes: - ./src:/var/www/html depends_on: - php entrypoint: [ 'composer', '--ignore-platform-reqs' ] networks: - rauru_net npm: image: node:current-alpine container_name: rauru_npm volumes: - ./src:/var/www/html ports: - "3000:3000" - "3001:3001" - "5173:5173" working_dir: /var/www/html entrypoint: [ 'npm' ] networks: - rauru_net artisan: build: context: ./dockerfiles dockerfile: php.root.dockerfile args: - UID=${UID:-1000} - GID=${GID:-1000} container_name: rauru_artisan volumes: - ./src:/var/www/html:delegated depends_on: - db entrypoint: [ 'php', '/var/www/html/artisan' ] networks: - rauru_net mailhog: container_name: rauru_mailhog image: mailhog/mailhog:latest ports: - "1025:1025" - "8025:8025" networks: - rauru_net