diff --git a/docker-compose.yml b/docker-compose.yml index 5c77d36..d7197f4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,12 @@ version: "2" +networks: + webproxy: + external: true + + backend-gitea: + external: true + services: server: image: gitea/gitea:latest @@ -12,6 +19,9 @@ services: - DB_USER=gitea - DB_PASSWD=gitea restart: always + networks: + - webproxy + - backend-gitea volumes: - /opt/appdata/gitea/data:/data ports: @@ -29,6 +39,8 @@ services: - MYSQL_USER=gitea - MYSQL_PASSWORD=gitea - MYSQL_DATABASE=gitea + networks: + - backend-gitea container_name: bmen-gitea-db volumes: - /opt/appdata/gitea/mysql:/var/lib/mysql