realfan/docker-compose.yaml

39 lines
627 B
YAML
Raw Normal View History

2021-11-24 19:49:27 +00:00
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
2021-11-24 20:48:01 +00:00
environment:
- ENV=dev # if not set, production mode is ON
2021-11-24 19:49:27 +00:00
volumes:
- ./public:/var/www/html
- ./src:/src
networks:
- dev
ports:
- 8080:80
volumes:
db:
networks:
dev: