Add docker-compose for dev

This commit is contained in:
Bofh 2021-11-24 20:49:27 +01:00
parent e0ec06c197
commit fd491cae8c
1 changed files with 36 additions and 0 deletions

36
docker-compose.yaml Normal file
View File

@ -0,0 +1,36 @@
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
volumes:
- ./public:/var/www/html
- ./src:/src
networks:
- dev
ports:
- 8080:80
volumes:
db:
networks:
dev: