notepad/docker-compose.yml
2025-12-19 18:43:52 +08:00

38 lines
662 B
YAML

version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: notepad-backend
restart: unless-stopped
volumes:
- ${FILES_DIR:-./files}:/app/data
env_file:
- .env
networks:
- notepad-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: notepad-frontend
restart: unless-stopped
ports:
- "${EXTERNAL_PORT:-80}:80"
depends_on:
- backend
env_file:
- .env
networks:
- notepad-network
networks:
notepad-network:
driver: bridge
volumes:
notepad-data:
driver: local