Skip to content

Commit

Permalink
add app_network to docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
OomsOoms committed Feb 17, 2025
1 parent 44ab5bc commit e313479
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions server/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
version: "3.9"
version: '3.9'

services:
cloudflared:
image: wisdomsky/cloudflared-web:latest
networks:
- cloudflare-network
deploy:
replicas: 1
placement:
constraints:
- node.role == manager # Adjust as necessary
restart_policy:
condition: any
ports:
- "14333:14333"

nettleship-net-api:
image: nettleship-net-api:latest
deploy:
Expand All @@ -9,8 +23,15 @@ services:
condition: none
placement:
constraints:
- node.role == manager # This ensures the service runs only on the manager node (pi-1)
- node.role == manager # This ensures the service runs only on the manager node (pi-1)
env_file:
- .env.production
ports:
- "3000:3000"
networks:
- cloudflare-network

networks:
cloudflare-network:
driver: overlay
external: true

0 comments on commit e313479

Please sign in to comment.