Advertisement
Guest User

docker-compose.yml

a guest
Feb 26th, 2024
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. version: '3'
  2.  
  3. services:
  4. # Koillection
  5. koillection:
  6. image: koillection/koillection
  7. container_name: koillection
  8. restart: unless-stopped
  9. ports:
  10. - 80:80
  11. env_file:
  12. - .env
  13. depends_on:
  14. - db
  15. volumes:
  16. - ./volumes/koillection/uploads:/uploads
  17.  
  18. # Database : choose one of the following
  19. db:
  20. image: postgres:16
  21. container_name: db
  22. restart: unless-stopped
  23. env_file:
  24. - .env
  25. environment:
  26. - POSTGRES_DB=${DB_NAME}
  27. - POSTGRES_USER=${DB_USER}
  28. - POSTGRES_PASSWORD=${DB_PASSWORD}
  29. volumes:
  30. - "./volumes/postgresql:/var/lib/postgresql/data"
  31.  
  32. #db:
  33. # image: mysql:latest
  34. # container_name: db
  35. # restart: unless-stopped
  36. # environment:
  37. # - MYSQL_DATABASE=${DB_NAME}
  38. # - MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
  39. # volumes:
  40. # - "./docker/volumes/mysql:/var/lib/mysql"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement