Files
port-ui/docker-compose.yml

25 lines
600 B
YAML
Raw Normal View History

2025-07-05 09:32:07 +02:00
version: '3.8'
2025-01-10 18:30:59 +01:00
services:
2025-03-20 00:23:35 +01:00
portfolio:
2025-01-10 18:30:59 +01:00
build:
context: .
dockerfile: Dockerfile
2025-03-20 00:23:35 +01:00
container_name: portfolio
2025-01-10 18:30:59 +01:00
ports:
2025-07-05 09:40:11 +02:00
- "${PORT:-5000}:${PORT:-5000}"
2025-07-09 22:20:58 +02:00
env_file:
- .env
2025-01-10 18:30:59 +01:00
volumes:
- ./app:/app
- node_modules:/app/node_modules
- vendor:/app/static/vendor
# Run `npm install` on every container start so the named volumes
# reflect the current package.json (postinstall regenerates vendor/).
command: sh -c "npm install --prefix /app --no-audit --no-fund && python app.py"
2025-01-10 18:30:59 +01:00
restart: unless-stopped
volumes:
node_modules:
vendor: