Something went wrong. Try again.
PHP websites made by me
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152services: app: build: context: . dockerfile: Dockerfile env_file: "dev.env" depends_on: db: condition: service_healthy volumes: - ./www:/var/www/html # Mount the local directory to the container ports: - "8080:80" healthcheck: test: curl --fail http://localhost || exit 1 interval: 60s retries: 5 start_period: 20s timeout: 10s
db: image: postgres:latest env_file: "dev.env" expose: - "5432" volumes: # - database:/var/lib/postgresql/data - ./db:/docker-entrypoint-initdb.d healthcheck: test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ] interval: 5s timeout: 10s retries: 30
pgadmin: image: dpage/pgadmin4:latest env_file: "dev.env" ports: - "8081:80" volumes: - pgadmin_data:/var/lib/pgadmin depends_on: db: condition: service_healthy restart: always
volumes: pgadmin_data: # database: