chore(docker-compose.prod.yml): use strapi-shared-network only

This commit is contained in:
Artur
2024-12-03 15:01:54 -03:00
parent ef511b3b61
commit 120dff935d

View File

@@ -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