name: thlab-git ########## ===== NETWORKS ===== ########## networks: thlab_proxy: name: thlab_proxy thlab_backend: name: thlab_backend ##### ########## ===== VOLUMES ===== ########## volumes: gitea_data: name: thlab_gitea driver: local ##### ########## ===== SERVICES ===== ########## services: ##### == GITEA == ##### thlab-gitea: image: docker.gitea.com/gitea:latest container_name: thlab-gitea restart: unless-stopped env_file: [.secrets/.env] environment: USER_UID: "1000" USER_GID: "1000" GITEA__database__DB_TYPE: postgres GITEA__database__HOST: thlab-postgres:5432 GITEA__database__NAME: gitea GITEA__server__SSH_LISTEN_PORT: "22" GITEA__server__HTTP_PORT: "3000" GITEA__mailer__ENABLED: "true" GITEA__mailer__PROTOCOL: "smtp" ports: - "2222:22" volumes: - gitea_data:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro networks: - thlab_proxy - thlab_backend #####