Mejoras en el manejo del docker-compose
This commit is contained in:
Binary file not shown.
32
docker-compose.yml
Normal file
32
docker-compose.yml
Normal 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:
|
||||
|
||||
Reference in New Issue
Block a user