diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 4c73964..099b00e 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -1,5 +1,5 @@ services: - cloudflared: + strapi-cloudflared: image: cloudflare/cloudflared:latest container_name: strapi-cloudflared restart: unless-stopped @@ -8,18 +8,18 @@ services: TUNNEL_TOKEN: ${CLOUDFLARE_TUNNEL_TOKEN} REAL_IP_HEADER: Cf-Connecting-Ip networks: - - internal + - strapi-shared-network depends_on: - - nginx + - strapi-nginx - nginx: + strapi-nginx: image: nginx:1 container_name: strapi-nginx restart: unless-stopped volumes: - ./nginx.conf:/etc/nginx/nginx.conf networks: - - internal + - strapi-shared-network depends_on: - strapi @@ -57,12 +57,11 @@ services: - ./package-lock.json:/opt/package-lock.json - ./public/uploads:/opt/app/public/uploads networks: - - internal - strapi-shared-network depends_on: - - postgres + - strapi-postgres - postgres: + strapi-postgres: container_name: strapi-postgres image: postgres:16-alpine restart: unless-stopped @@ -72,12 +71,12 @@ services: POSTGRES_PASSWORD: ${DATABASE_PASSWORD} volumes: - "strapi_postgres_data:/var/lib/postgresql/data" + networks: + - strapi-shared-network volumes: strapi_postgres_data: networks: - internal: - driver: bridge strapi-shared-network: external: true