# https://github.com/agungprsty/laravel-postgres-with-docker.git version: "3.9" networks: sides_net: name: sides_net external: true services: app: container_name: sides-app build: context: . dockerfile: Dockerfile volumes: - ./src:/var/www/html depends_on: - postgres networks: - sides_net restart: unless-stopped postgres: container_name: sides-db image: postgres:18.1 restart: always volumes: - ./docker/postgres/data:/var/lib/postgres/data environment: - POSTGRES_DB=${POSTGRES_DB} - POSTGRES_USER=${POSTGRES_USER} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} ports: - "5432:5432" networks: - sides_net web: container_name: sides-web image: nginx:stable-alpine restart: always ports: - "8080:80" - "8443:443" volumes: - ./src:/var/www/html - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf networks: - sides_net # Database management with pgAdmin pgadmin: image: dpage/pgadmin4 container_name: sides-pgAdmin environment: - PGADMIN_DEFAULT_EMAIL=${PGADMIN_EMAIL} - PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PASSWORD} ports: - "5050:80" depends_on: - postgres volumes: - ./backup:/var/lib/pgadmin/storage/tck68000_gmail.com/backup networks: - sides_net restart: unless-stopped # Database management with Adminer adminer: container_name: sides-adminer image: adminer restart: always ports: - "6060:8080" depends_on: - postgres networks: - sides_net # Run with docker compose up -d dozzle: image: amir20/dozzle:latest volumes: - /var/run/docker.sock:/var/run/docker.sock ports: - 777:8080 environment: # Uncomment to enable container actions (stop, start, restart). See https://dozzle.dev/guide/actions - DOZZLE_ENABLE_ACTIONS=true # # Uncomment to allow access to container shells. See https://dozzle.dev/guide/shell - DOZZLE_ENABLE_SHELL=true # # Uncomment to enable authentication. See https://dozzle.dev/guide/authentication # - DOZZLE_AUTH_PROVIDER=simple filebrowser: image: gtstef/filebrowser:stable container_name: quantum-prod ports: - 8900:80 user: "0:0" restart: unless-stopped # user: filebrowser volumes: - ./filebrowser-data:/home/filebrowser/data - ./files:/files - /root/sides:/sides # Add other sources environment: - "FILEBROWSER_CONFIG=data/config.yaml" # using our config file at ./data/config.yaml