Update setup.sh

This commit is contained in:
ilyastar9999
2025-12-02 18:40:56 +03:00
parent eef0eaa46f
commit baa8a1d727

View File

@@ -104,7 +104,6 @@ SHEOF
chmod +x Packmate_stuff/update_db_config.sh chmod +x Packmate_stuff/update_db_config.sh
# docker-compose.yml (minimal) # docker-compose.yml (minimal)
cat > docker-compose.yml <<'DCEOF' cat > docker-compose.yml <<'DCEOF'
version: '3.8'
services: services:
packmate: packmate:
env_file: env_file:
@@ -175,7 +174,6 @@ POSTGRES_PASSWORD=farmpassword123
POSTGRES_DB=farm POSTGRES_DB=farm
ENVEOF ENVEOF
cat > docker-compose.yml <<'DCEOF' cat > docker-compose.yml <<'DCEOF'
version: '3.8'
services: services:
farm: farm:
image: ghcr.io/ilyastar9999/moded_distructive_farm:latest image: ghcr.io/ilyastar9999/moded_distructive_farm:latest
@@ -190,8 +188,10 @@ services:
- "3333:8000" - "3333:8000"
postgres: postgres:
image: postgres:18 image: postgres:18
env_file: environment:
- .env - POSTGRES_USER=farm
- POSTGRES_PASSWORD=farmpassword123
- POSTGRES_DB=farm
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U farm -d farm"] test: ["CMD-SHELL", "pg_isready -U farm -d farm"]
interval: 10s interval: 10s
@@ -230,10 +230,9 @@ FIREGEX_PORT=5000
ENVEOF ENVEOF
if [ ! -f "docker-compose.yml" ]; then if [ ! -f "docker-compose.yml" ]; then
cat > docker-compose.yml <<'DCEOF' cat > docker-compose.yml <<'DCEOF'
version: '3.8'
services: services:
firegex: firegex:
build: . image: ghcr.io/pwnzer0tt1/firegex:latest
env_file: env_file:
- .env - .env
container_name: firegex-app container_name: firegex-app