Connect web service to Coolify's Traefik proxy network
Without joining the external 'coolify' network, Traefik cannot reach the container and the reverse proxy returns 502. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b17b781839
commit
051514ced1
@ -2,8 +2,8 @@ services:
|
|||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
container_name: cot_web
|
container_name: cot_web
|
||||||
ports:
|
expose:
|
||||||
- "31478:8000"
|
- "8000"
|
||||||
volumes:
|
volumes:
|
||||||
- cot_data:/data
|
- cot_data:/data
|
||||||
environment:
|
environment:
|
||||||
@ -18,6 +18,9 @@ services:
|
|||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
networks:
|
||||||
|
- coolify
|
||||||
|
- default
|
||||||
|
|
||||||
cron:
|
cron:
|
||||||
build: .
|
build: .
|
||||||
@ -31,7 +34,13 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
web:
|
web:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
cot_data:
|
cot_data:
|
||||||
driver: local
|
driver: local
|
||||||
|
|
||||||
|
networks:
|
||||||
|
coolify:
|
||||||
|
external: true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user