service configurations for desearch.cc
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
924 B

  1. version: "3"
  2. networks:
  3. gitea:
  4. external: false
  5. services:
  6. server:
  7. image: gitea/gitea:1.14.6
  8. container_name: gitea
  9. environment:
  10. - USER_UID=1000
  11. - USER_GID=1000
  12. - ROOT_URL=https://git.desearch.cc
  13. - GITEA__database__DB_TYPE=postgres
  14. - GITEA__database__HOST=db:5432
  15. - GITEA__database__NAME=gitea
  16. - GITEA__database__USER=gitea
  17. - GITEA__database__PASSWD=gitea
  18. restart: always
  19. networks:
  20. - gitea
  21. volumes:
  22. - ./volumes/gitea:/data
  23. - /etc/timezone:/etc/timezone:ro
  24. - /etc/localtime:/etc/localtime:ro
  25. ports:
  26. - "7000:3000"
  27. - "22:22"
  28. depends_on:
  29. - db
  30. db:
  31. image: postgres:13.4-alpine
  32. restart: always
  33. environment:
  34. - POSTGRES_USER=gitea
  35. - POSTGRES_PASSWORD=gitea
  36. - POSTGRES_DB=gitea
  37. networks:
  38. - gitea
  39. volumes:
  40. - ./volumes/database:/var/lib/postgresql/data