Basic integration of consul registration
This commit is contained in:
22
src/main/docker-compose/native.yml
Normal file
22
src/main/docker-compose/native.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
services:
|
||||
shikimori-metadata-service:
|
||||
build:
|
||||
context: ../../../.
|
||||
dockerfile: src/main/docker/Dockerfile.native-micro
|
||||
container_name: shikimori-metadata-service
|
||||
restart: on-failure
|
||||
networks:
|
||||
- anyame-consul
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 512M
|
||||
cpus: "1"
|
||||
reservations:
|
||||
memory: 128M
|
||||
cpus: "0.3"
|
||||
|
||||
networks:
|
||||
anyame-consul:
|
||||
name: anyame-consul
|
||||
external: true
|
||||
Reference in New Issue
Block a user