feat: configure network settings for services and add cloudflared service
This commit is contained in:
@@ -16,6 +16,9 @@ services:
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
networks:
|
||||
emly:
|
||||
ipv4_address: 172.16.32.2
|
||||
|
||||
api:
|
||||
build: .
|
||||
@@ -35,6 +38,9 @@ services:
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
emly:
|
||||
ipv4_address: 172.16.32.3
|
||||
|
||||
dashboard:
|
||||
build: ./dashboard
|
||||
@@ -49,6 +55,30 @@ services:
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
emly:
|
||||
ipv4_address: 172.16.32.4
|
||||
|
||||
cloudflared:
|
||||
image: cloudflare/cloudflared:latest
|
||||
command: tunnel run
|
||||
environment:
|
||||
TUNNEL_TOKEN: ${CLOUDFLARE_TUNNEL_TOKEN}
|
||||
depends_on:
|
||||
- api
|
||||
- dashboard
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
emly:
|
||||
ipv4_address: 172.16.32.5
|
||||
|
||||
volumes:
|
||||
mysql_data:
|
||||
|
||||
networks:
|
||||
emly:
|
||||
driver: bridge
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.16.32.0/24
|
||||
gateway: 172.16.32.1
|
||||
|
||||
Reference in New Issue
Block a user