🚦Added traefik configuration for Import service
This commit is contained in:
@@ -22,117 +22,123 @@ services:
|
|||||||
- "8051:8051"
|
- "8051:8051"
|
||||||
depends_on:
|
depends_on:
|
||||||
- rabbitmq
|
- rabbitmq
|
||||||
# - db
|
- db
|
||||||
|
- nats
|
||||||
- traefik
|
- traefik
|
||||||
# - importapi
|
- importapi
|
||||||
# - import
|
- import
|
||||||
# - imagetransformation
|
- imagetransformation
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
|
|
||||||
# comicvineapi:
|
comicvineapi:
|
||||||
# build:
|
build:
|
||||||
# context: https://github.com/rishighan/comicvine-service.git
|
context: https://github.com/rishighan/comicvine-service.git
|
||||||
# network: host
|
network: host
|
||||||
# image: frishi/comicvine-service
|
image: frishi/comicvine-service
|
||||||
# container_name: comicvine-api
|
container_name: comicvine-api
|
||||||
# ports:
|
ports:
|
||||||
# - "3080:3080"
|
- "3080:3080"
|
||||||
# environment:
|
environment:
|
||||||
# SERVICES: api
|
SERVICES: api
|
||||||
# env_file: ./docker-env/comicvine-service.env
|
env_file: ./docker-env/comicvine-service.env
|
||||||
# volumes:
|
volumes:
|
||||||
# - ./userdata:/comicvine-service/userdata
|
- ./userdata:/comicvine-service/userdata
|
||||||
# depends_on:
|
depends_on:
|
||||||
# - nats
|
- nats
|
||||||
# networks:
|
networks:
|
||||||
# - proxy
|
- proxy
|
||||||
|
|
||||||
# comicvine:
|
comicvine:
|
||||||
# build:
|
build:
|
||||||
# context: https://github.com/rishighan/comicvine-service.git
|
context: https://github.com/rishighan/comicvine-service.git
|
||||||
# network: host
|
network: host
|
||||||
# image: frishi/comicvine-service
|
image: frishi/comicvine-service
|
||||||
# container_name: comicvine-service
|
container_name: comicvine-service
|
||||||
# environment:
|
environment:
|
||||||
# SERVICES: comicvine
|
SERVICES: comicvine
|
||||||
# volumes:
|
volumes:
|
||||||
# - ./userdata:/comicvine-service/userdata
|
- ./userdata:/comicvine-service/userdata
|
||||||
# env_file: ./docker-env/comicvine-service.env
|
env_file: ./docker-env/comicvine-service.env
|
||||||
# networks:
|
networks:
|
||||||
# - proxy
|
- proxy
|
||||||
|
|
||||||
# importapi:
|
importapi:
|
||||||
# build:
|
build:
|
||||||
# context: https://github.com/rishighan/threetwo-import-service.git
|
context: https://github.com/rishighan/threetwo-import-service.git
|
||||||
# network: host
|
network: host
|
||||||
# image: frishi/threetwo-import-service
|
image: frishi/threetwo-import-service
|
||||||
# container_name: threetwo-import-api
|
container_name: threetwo-import-api
|
||||||
# ports:
|
ports:
|
||||||
# - "3000:3000"
|
- "3000:3000"
|
||||||
# environment:
|
environment:
|
||||||
# SERVICES: api
|
SERVICES: api
|
||||||
# env_file: ./docker-env/threetwo-import-service.env
|
labels:
|
||||||
# volumes:
|
- "traefik.enable=true"
|
||||||
# - ./userdata:/threetwo-import-service/userdata
|
- "traefik.http.routers.threetwo-import-api.rule=Host(`localhost`)"
|
||||||
# - ./comics:/threetwo-import-service/comics.
|
- "traefik.http.services.threetwo-import-api.loadbalancer.server.port=3000"
|
||||||
# depends_on:
|
- "traefik.docker.network=proxy"
|
||||||
# - nats
|
env_file: ./docker-env/threetwo-import-service.env
|
||||||
# - db
|
volumes:
|
||||||
# networks:
|
- ./userdata:/threetwo-import-service/userdata
|
||||||
# - proxy
|
- ./comics:/threetwo-import-service/comics.
|
||||||
|
depends_on:
|
||||||
|
- nats
|
||||||
|
- db
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
|
|
||||||
# import:
|
import:
|
||||||
# build:
|
build:
|
||||||
# context: https://github.com/rishighan/threetwo-import-service.git
|
context: https://github.com/rishighan/threetwo-import-service.git
|
||||||
# network: host
|
network: host
|
||||||
# image: frishi/threetwo-import-service
|
image: frishi/threetwo-import-service
|
||||||
# container_name: import
|
container_name: import
|
||||||
# depends_on:
|
depends_on:
|
||||||
# - db
|
- db
|
||||||
# - nats
|
- nats
|
||||||
# environment:
|
environment:
|
||||||
# SERVICES: import
|
SERVICES: import
|
||||||
# volumes:
|
volumes:
|
||||||
# - ./userdata:/threetwo-import-service/userdata
|
- ./userdata:/threetwo-import-service/userdata
|
||||||
# - ./comics:/threetwo-import-service/comics
|
- ./comics:/threetwo-import-service/comics
|
||||||
# env_file: ./docker-env/threetwo-import-service.env
|
env_file: ./docker-env/threetwo-import-service.env
|
||||||
# networks:
|
networks:
|
||||||
# - proxy
|
- proxy
|
||||||
|
|
||||||
# imagetransformation:
|
imagetransformation:
|
||||||
# build:
|
build:
|
||||||
# context: https://github.com/rishighan/threetwo-import-service.git
|
context: https://github.com/rishighan/threetwo-import-service.git
|
||||||
# network: host
|
network: host
|
||||||
# image: frishi/threetwo-import-service
|
image: frishi/threetwo-import-service
|
||||||
# container_name: image-transformation
|
container_name: image-transformation
|
||||||
# volumes:
|
volumes:
|
||||||
# - ./userdata:/threetwo-import-service/userdata
|
- ./userdata:/threetwo-import-service/userdata
|
||||||
# - ./comics:/threetwo-import-service/comics
|
- ./comics:/threetwo-import-service/comics
|
||||||
# depends_on:
|
depends_on:
|
||||||
# - db
|
- db
|
||||||
# - nats
|
- nats
|
||||||
# environment:
|
environment:
|
||||||
# SERVICES: imagetransformation
|
SERVICES: imagetransformation
|
||||||
# env_file: ./docker-env/threetwo-import-service.env
|
env_file: ./docker-env/threetwo-import-service.env
|
||||||
# networks:
|
networks:
|
||||||
# - proxy
|
- proxy
|
||||||
|
|
||||||
# db:
|
db:
|
||||||
# image: 'bitnami/mongodb:latest'
|
image: 'bitnami/mongodb:latest'
|
||||||
# container_name: database
|
container_name: database
|
||||||
# networks:
|
networks:
|
||||||
# - proxy
|
- proxy
|
||||||
# ports:
|
ports:
|
||||||
# - "27017:27017"
|
- "27017:27017"
|
||||||
# volumes:
|
volumes:
|
||||||
# - 'mongodb_data:/bitnami/mongodb'
|
- 'mongodb_data:/bitnami/mongodb'
|
||||||
|
|
||||||
# nats:
|
nats:
|
||||||
# image: nats:2
|
image: nats:2
|
||||||
# container_name: transporter
|
container_name: transporter
|
||||||
# networks:
|
networks:
|
||||||
# - proxy
|
- proxy
|
||||||
|
|
||||||
|
|
||||||
traefik:
|
traefik:
|
||||||
|
|||||||
Reference in New Issue
Block a user