refactor(config): add network configuration and dependencies for inter-service communication
- Configure flaresolverr and free-games-claimer to use a shared bridge network - Explicitly set container name for flaresolverr and declare network dependency - Define custom bridge network `fgc-network` for isolating service communication This ensures services can reliably communicate over Docker's internal DNS while maintaining network separation from other containers.
This commit is contained in:
parent
e0c97f8d7c
commit
b14530537a
1 changed files with 11 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# start with `docker compose up`
|
||||
services:
|
||||
flaresolverr:
|
||||
container_name: flaresolverr
|
||||
image: flaresolverr/flaresolverr:latest
|
||||
ports:
|
||||
- "8191:8191"
|
||||
|
|
@ -9,6 +10,8 @@ services:
|
|||
- LOG_HTML=false
|
||||
- CAPTCHA_SOLVER=none
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- fgc-network
|
||||
|
||||
free-games-claimer:
|
||||
container_name: fgc # is printed in front of every output line
|
||||
|
|
@ -26,6 +29,14 @@ services:
|
|||
# - NOTIFY='tgram://...'
|
||||
- EG_MODE=new
|
||||
- FLARESOLVERR_URL=http://flaresolverr:8191/v1
|
||||
networks:
|
||||
- fgc-network
|
||||
depends_on:
|
||||
- flaresolverr
|
||||
|
||||
networks:
|
||||
fgc-network:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
fgc:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue