diff --git a/docker-compose.yml b/docker-compose.yml index 4da9326..e5bdc3a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,7 @@ services: dockerfile: Dockerfile container_name: nginx env_file: ./.env - restart: unless-stopped + restart: always depends_on: - backend - icecast2 @@ -41,7 +41,7 @@ services: context: ./backend dockerfile: Dockerfile container_name: "${BACKEND_HOST}" - restart: unless-stopped + restart: always depends_on: - db networks: @@ -56,13 +56,15 @@ services: db: image: postgres:16 container_name: "${POSTGRES_HOST}" - restart: unless-stopped + restart: always env_file: - ./.env networks: - app-network volumes: - dbdata:/var/lib/postgresql/data + ports: + - 5432:5432 icecast2: build: @@ -76,3 +78,23 @@ services: - ./.env ports: - "${ICECAST_PORT}:${ICECAST_PORT}" + gitea: + + image: docker.gitea.com/gitea:1.25.4-rootless + environment: + - GITEA__database__DB_TYPE=postgres + - GITEA__database__HOST=${POSTGRES_HOST} + - GITEA__database__NAME=${POSTGRES_GITEA_DB} + - GITEA__database__USER=${POSTGRES_USER} + - GITEA__database__PASSWD=${POSTGRES_PASSWORD} + restart: always + volumes: + - ./data:/var/lib/gitea + - ./config:/etc/gitea + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + ports: + - "3000:3000" + - "2222:2222" + depends_on: + - db