-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (38 loc) · 979 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: '3.4'
services:
consul-service:
image: "hashicorp/consul:latest"
command: consul agent -dev -log-level=warn -ui -client=0.0.0.0
hostname: consul
ports:
- "8500:8500"
- "8600:8600"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8500"]
interval: 10s
timeout: 5s
retries: 5
swizlypeasy.demo.api:
image: ${DOCKER_REGISTRY-}swizlypeasydemoapi
hostname: demo
ports:
- "8002:80"
- "8003:443"
build:
context: .
dockerfile: Demo/SwizlyPeasy.Demo.API/Dockerfile
depends_on:
consul-service:
condition: service_healthy
swizlypeasy.gateway.api:
image: ${DOCKER_REGISTRY-}swizlypeasygatewayapi
hostname: gateway
ports:
- "8000:80"
- "8001:443"
build:
context: .
dockerfile: SwizlyPeasy.Gateway.API/Dockerfile
depends_on:
consul-service:
condition: service_healthy