compose: join external storage network
The new asxpio/storage stack owns a Docker network named "storage" carrying Postgres and MinIO. The app joins it (alongside traefik) so it can reach postgres:5432 and minio:9000 by service name.
This commit is contained in:
parent
c3f37e6cb0
commit
1e4bded4ae
1 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ services:
|
||||||
env_file: .env
|
env_file: .env
|
||||||
networks:
|
networks:
|
||||||
- traefik
|
- traefik
|
||||||
|
- storage
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.asxpio.rule=Host(`asxp.io`) || Host(`www.asxp.io`)"
|
- "traefik.http.routers.asxpio.rule=Host(`asxp.io`) || Host(`www.asxp.io`)"
|
||||||
|
|
@ -20,3 +21,5 @@ services:
|
||||||
networks:
|
networks:
|
||||||
traefik:
|
traefik:
|
||||||
external: true
|
external: true
|
||||||
|
storage:
|
||||||
|
external: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue