-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·110 lines (100 loc) · 2.67 KB
/
docker-compose.yml
File metadata and controls
executable file
·110 lines (100 loc) · 2.67 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Copyright (c) 2025 Eclipse Foundation.
#
# This program and the accompanying materials are made available under the
# terms of the MIT License which is available at
# https://opensource.org/licenses/MIT.
#
# SPDX-License-Identifier: MIT
services:
kong:
platform: linux/amd64
image: boschvn/playground-kong:latest
container_name: ${ENV:-dev}-kong
environment:
KONG_ADMIN_ACCESS_LOG: /dev/stdout
KONG_ADMIN_ERROR_LOG: /dev/stderr
KONG_PROXY_ACCESS_LOG: /dev/stdout
KONG_PROXY_ERROR_LOG: /dev/stderr
KONG_NGINX_WORKER_PROCESSES: ${KONG_NGINX_WORKER_PROCESSES:-auto}
CORS_ORIGINS: ${CORS_ORIGINS}
ports:
- '${KONG_PROXY_PORT}:8000'
restart: always
networks:
- node-network
depends_on:
- playground-be
- inventory-be
playground-be:
platform: linux/amd64
container_name: ${ENV:-dev}-playground-be
build: .
image: boschvn/playground-be:${IMAGE_TAG:-latest}
env_file:
- .env
depends_on:
- playground-db
- upload
networks:
- node-network
restart: always
command: yarn start
playground-db:
container_name: ${DB_CONTAINER_NAME:-playground-db}
image: mongo:4.4.6-bionic
volumes:
- dbdata:/data/db
networks:
- node-network
restart: always
upload:
platform: linux/amd64
container_name: ${ENV:-dev}-upload
image: boschvn/upload:1.1.0
env_file:
- .env
volumes:
- '${UPLOAD_PATH}:/usr/src/upload/data'
networks:
- node-network
restart: always
command: npm run prod
homologation:
platform: linux/amd64
container_name: ${ENV:-dev}-homologation-node
image: boschvn/homologation-node:latest
networks:
- node-network
environment:
- HOMOLOGATION_AUTH_CLIENT_ID=${HOMOLOGATION_AUTH_CLIENT_ID}
- HOMOLOGATION_AUTH_CLIENT_SECRET=${HOMOLOGATION_AUTH_CLIENT_SECRET}
inventory-be:
platform: linux/amd64
container_name: ${ENV:-dev}-inventory-be
image: boschvn/inventory-be:latest
environment:
- NODE_ENV=${NODE_ENV:-production}
- MONGODB_URL=mongodb://inventory-db:27017/inventory
- AUTHORIZATION_URL=http://playground-be:8080/v2/auth/authorize
- CORS_ORIGIN=${CORS_ORIGINS}
networks:
- node-network
restart: ${RESTART_POLICY:-always}
command: yarn start
depends_on:
- inventory-db
inventory-db:
platform: linux/amd64
container_name: ${ENV:-dev}-inventory-db
image: mongo:4.4.6-bionic
volumes:
- inventorydata:/data/db
restart: ${RESTART_POLICY:-always}
networks:
- node-network
volumes:
dbdata:
inventorydata:
networks:
node-network:
driver: bridge