Mejoras en el manejo del docker-compose

This commit is contained in:
2021-07-09 00:00:05 -04:00
parent 64c05456af
commit 61b9e25c3b
3 changed files with 32 additions and 0 deletions

32
docker-compose.yml Normal file
View File

@@ -0,0 +1,32 @@
version: "3.9"
services:
backend:
build:
context: ./backend
dockerfile: ./Dockerfile
volumes:
- ./backend:/lumen
ports:
- 8080:8080
database:
image: postgres:13
restart: unless-stopped
environment:
POSTGRES_PASSWORD: admin
PGDATA: "/var/lib/postgresql/data/pgdata"
volumes:
- ./database/init:/docker-entrypoint-initdb.d
- database:/var/lib/postgresql/data
cache:
image: redis
restart: unless-stopped
volumes:
- cache:/data
volumes:
database:
cache: