docker-compose.yml 535 B

12345678910111213141516171819202122232425262728293031
  1. services:
  2. web:
  3. build:
  4. context: .
  5. target: web
  6. ports:
  7. - "3000:3000"
  8. volumes:
  9. - db-data:/app/data
  10. env_file:
  11. - .env.production
  12. environment:
  13. - DATABASE_URL=file:/app/data/prod.db
  14. restart: unless-stopped
  15. worker:
  16. build:
  17. context: .
  18. target: worker
  19. volumes:
  20. - db-data:/app/data
  21. env_file:
  22. - .env.production
  23. environment:
  24. - DATABASE_URL=file:/app/data/prod.db
  25. restart: unless-stopped
  26. depends_on:
  27. - web
  28. volumes:
  29. db-data: