Primo Caricamento
This commit is contained in:
28
docker-compose.yml
Normal file
28
docker-compose.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
api:
|
||||
build:
|
||||
context: ./api
|
||||
dockerfile: Dockerfile
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- DOWNLOAD_DIR=/downloads
|
||||
volumes:
|
||||
- downloads:/downloads
|
||||
expose:
|
||||
- ${API_PORT:-5000}
|
||||
|
||||
nginx:
|
||||
image: nginx:stable-alpine
|
||||
depends_on:
|
||||
- api
|
||||
ports:
|
||||
- "${WEB_PORT:-8080}:80"
|
||||
volumes:
|
||||
- ./frontend:/usr/share/nginx/html:ro
|
||||
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
- downloads:/downloads:ro
|
||||
|
||||
volumes:
|
||||
downloads:
|
||||
Reference in New Issue
Block a user