Add docker-compose for dev
This commit is contained in:
parent
e0ec06c197
commit
fd491cae8c
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue