Repository navigation
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
113 lines (109 loc) · 2.9 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
113 lines (109 loc) · 2.9 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
111
112
113
services:
apicuron-ws:
container_name: apicuron-webserver
build:
context: "./apicuron-ws"
target: local
args:
- UID=${UID}
- GID=${GID}
image: "apicuron-ws:local"
working_dir: "/home/node/app"
# user: $DOCKER_USER
volumes:
- "./apicuron-ws:/home/node/app"
networks:
- apicuron-network
logging:
driver: "json-file"
options:
max-size: "5mb"
max-file: "5"
env_file:
- .env
# environment:
# - DATABASE_HOST=mongodb
# - DATABASE=apicuron_test
# - DB_PORT=27017
# - NODE_ENV=local
# dns: 10.69.69.1
# logging:
# driver: local
# options:
# max-size: '10m'
# max-file: 5
command: "npm run start:dev"
depends_on:
- mongodb
apicuron-ui:
container_name: apicuron-ui
build:
context: "./apicuron-ui"
target: local
args:
- UID=${UID}
- GID=${GID}
image: "apicuron-ui:local"
working_dir: "/home/node/app"
ports:
- 4200:4200
# image: "node:16.14"
volumes:
- "./apicuron-ui:/home/node/app"
networks:
- apicuron-network
# dns: 10.69.69.1
command: "npm run start-dev-external"
proxy:
container_name: apicuron-proxy
image: nginx:stable-alpine-perl
volumes:
- "./nginx.conf:/etc/nginx/conf.d/default.conf"
# - "./proxy/error.log:/var/log/nginx/error.log" TODO: Fix Bind mount issue,
# nginx automatically creates an error.log folder on ./proxy instead of a file and then fails to read it
networks:
- apicuron-network
depends_on:
- apicuron-ui
- apicuron-ws
# - apicuron-docs
ports:
- 3000:3000
mongodb:
container_name: apicuron-mongodb
image: mongo:7
volumes:
- ./db:/data/db
- ./mongo/init:/docker-entrypoint-initdb.d/
- ./mongo/mongd.conf:/etc/mongod.conf:ro
networks:
- apicuron-network
ports:
- 27017:27017
env_file:
- .env
# broker:
# image: apache/kafka:latest
# ports:
# - 9092:9092
# container_name: broker
# networks:
# - apicuron-network
# environment:
# KAFKA_LISTENERS: PLAINTEXT://broker:9092,CONTROLLER://localhost:9093
# KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://broker:9092
# # KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
# # KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://broker:9092
# KAFKA_NODE_ID: 1
# KAFKA_PROCESS_ROLES: broker,controller
# KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
# KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
# KAFKA_CONTROLLER_QUORUM_VOTERS: 1@localhost:9093
# KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
# KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
# KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
# KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
# KAFKA_NUM_PARTITIONS: 3
networks:
apicuron-network:
name: apicuron-network