fix: remove explicit container_name from docker-compose for Coolify compatibility
This commit is contained in:
+4
-8
@@ -4,14 +4,13 @@ services:
|
||||
# 1. PostgreSQL Database Service
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: citpl_postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: strapi
|
||||
POSTGRES_USER: strapi
|
||||
POSTGRES_PASSWORD: strapi_password_9000
|
||||
ports:
|
||||
- "9543:5432" # Random port > 9000
|
||||
- "9543:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
@@ -27,7 +26,6 @@ services:
|
||||
build:
|
||||
context: ./strapi-cms
|
||||
dockerfile: Dockerfile
|
||||
container_name: citpl_strapi
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
DATABASE_CLIENT: postgres
|
||||
@@ -45,7 +43,7 @@ services:
|
||||
TRANSFER_TOKEN_SALT: "tobemodifiedtransfertoken"
|
||||
JWT_SECRET: "tobemodifiedjwtsecret"
|
||||
ports:
|
||||
- "9337:1337" # Random port > 9000
|
||||
- "9337:1337"
|
||||
volumes:
|
||||
- strapi_uploads:/app/public/uploads
|
||||
depends_on:
|
||||
@@ -59,7 +57,6 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.backend
|
||||
container_name: citpl_backend
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
PORT: 3005
|
||||
@@ -70,7 +67,7 @@ services:
|
||||
ADMIN_PASSWORD: admin123
|
||||
CORS_ORIGIN: "*"
|
||||
ports:
|
||||
- "9305:3005" # Random port > 9000
|
||||
- "9305:3005"
|
||||
volumes:
|
||||
- backend_uploads:/app/server/uploads
|
||||
- backend_data:/app/server/data
|
||||
@@ -84,10 +81,9 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.frontend
|
||||
container_name: citpl_frontend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "9080:80" # Random port > 9000
|
||||
- "9080:80"
|
||||
depends_on:
|
||||
- backend
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user