-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (75 loc) · 1.79 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: "3.9"
networks:
default:
name: kong-net
services:
image-service:
container_name: image-service
build:
context: ./
cache_from:
- base-image:nx-base
dockerfile: ./apps/image-service/Dockerfile
args:
NODE_ENV: "development"
BUILD_FLAG: ""
image: image-service:nx-dev
hostname: image-service
ports:
- "3333:3333"
environment:
NODE_ENV: "development"
PORT: 3333
networks:
- default
restart: on-failure
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3333/swagger-stats/metrics" ]
interval: 10s
timeout: 10s
retries: 10
wine-maker:
container_name: wine-maker
build:
context: ./
cache_from:
- base-image:nx-base
dockerfile: ./apps/wine-maker/Dockerfile
args:
NODE_ENV: "development"
BUILD_FLAG: ""
image: wine-maker:nx-dev
hostname: wine-maker
ports:
- "3334:3334"
environment:
NODE_ENV: "development"
PORT: 3334
networks:
- default
restart: on-failure
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3334/swagger-stats/metrics"]
interval: 10s
timeout: 10s
retries: 10
kong:
container_name: kong
image: kong:2.5.0-alpine
hostname: kong
environment:
KONG_DATABASE: 'off'
KONG_PROXY_ACCESS_LOG: '/dev/stdout'
KONG_ADMIN_ACCESS_LOG: '/dev/stdout'
KONG_PROXY_ERROR_LOG: '/dev/stderr'
KONG_ADMIN_ERROR_LOG: '/dev/stderr'
KONG_ADMIN_LISTEN: "0.0.0.0:8001, 0.0.0.0:8444 ssl"
KONG_DECLARATIVE_CONFIG: "/opt/kong/.config.yaml"
command: "kong start"
ports:
- "8000:8000"
- "8443:8443"
- "8001:8001"
- "8444:8444"
volumes:
- ./kong:/opt/kong