realfan/docker-compose.yaml

40 lines
652 B
YAML

version: '3.7'
services:
db:
restart: always
image: postgres:14.1
shm_size: 256mb
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
environment:
- POSTGRES_USER=realfan
- POSTGRES_PASSWORD=changemeNOW
- POSTGRES_DB=realfan
volumes:
- db:/var/lib/postgres/data
networks:
- dev
web:
restart: always
image: php:8.0-apache
environment:
- ENV=dev # if not set, production mode is ON
volumes:
- ./public:/var/www/html
- ./config:/config
- ./src:/src
networks:
- dev
ports:
- 8080:80
volumes:
db:
networks:
dev: