Skip to content

Commit

Permalink
chore(docker-compose.prod.yml): use strapi-shared-network only
Browse files Browse the repository at this point in the history
  • Loading branch information
Keeqler committed Dec 3, 2024
1 parent ef511b3 commit 120dff9
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
services:
cloudflared:
strapi-cloudflared:
image: cloudflare/cloudflared:latest
container_name: strapi-cloudflared
restart: unless-stopped
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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

0 comments on commit 120dff9

Please sign in to comment.