Update compose file orders
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
services:
|
||||
gitea_db:
|
||||
image: docker.io/library/postgres:17.5
|
||||
container_name: gitea_db
|
||||
image: docker.io/library/postgres:17.5
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
@@ -12,7 +13,6 @@ services:
|
||||
- ${DB_PORT}:5432
|
||||
networks:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
|
||||
start_period: 10s
|
||||
@@ -21,8 +21,9 @@ services:
|
||||
retries: 3
|
||||
|
||||
gitea_server:
|
||||
image: docker.io/gitea/gitea:1.24.2-rootless
|
||||
container_name: gitea_server
|
||||
image: docker.io/gitea/gitea:1.24.2-rootless
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
gitea_db:
|
||||
condition: service_healthy
|
||||
@@ -44,7 +45,6 @@ services:
|
||||
networks:
|
||||
- frontend
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
||||
Reference in New Issue
Block a user