-
-
Notifications
You must be signed in to change notification settings - Fork 130
/
docker-compose.yml
115 lines (109 loc) · 2.95 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
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
114
115
version: '3'
services:
keycloak:
image: jboss/keycloak:16.1.0
container_name: keycloak
environment:
DB_VENDOR: POSTGRES
DB_ADDR: postgres
DB_DATABASE: keycloak
DB_USER: keycloak
DB_PASSWORD: keycloak123
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin123
KEYCLOAK_LOGLEVEL: INFO
PROXY_ADDRESS_FORWARDING: 'true'
# Uncomment the line below if you want to specify JDBC parameters. The parameter below is just an example, and it shouldn't be used in production without knowledge. It is highly recommended that you read the PostgreSQL JDBC driver documentation in order to use it.
#JDBC_PARAMS: "ssl=true"
ports:
- 8080:8080
depends_on:
- postgres
postgres:
image: postgres:14.1-alpine
container_name: postgres
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres321
KEYCLOAK_DB: keycloak
KEYCLOAK_DB_USER: keycloak
KEYCLOAK_DB_PASSWORD: keycloak123
ports:
- '31432:5432'
healthcheck:
test:
[
'CMD-SHELL',
'psql postgres://$${POSTGRES_USER}:$${POSTGRES_PASSWORD}@localhost:5432/$${POSTGRES_DB} || exit 1',
]
volumes:
- postgres_data:/var/lib/postgresql/data
- .deploy/postgres/scripts/create_databases.sh:/docker-entrypoint-initdb.d/10-create_databases.sh:ro
redis:
image: redis:alpine
api:
build:
context: .
dockerfile: .deploy/api/Dockerfile
image: xmlking/ngxapi:latest
container_name: api
environment:
NODE_TLS_REJECT_UNAUTHORIZED: 0
ports:
- '3000:3000'
depends_on:
- postgres
web:
build:
context: .
dockerfile: .deploy/webapp/prod.dockerfile
image: xmlking/ngxweb:latest
container_name: web
command: nginx-debug -g 'daemon off;'
volumes:
- .deploy/webapp/nginx.dev.conf:/etc/nginx/conf.d/nginx.conf:ro
ports:
- '4200:8080'
depends_on:
- keycloak
- api
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.3
container_name: elasticsearch
# ulimits:
# memlock:
# soft: -1
# hard: -1
# volumes:
# - esdata1:/usr/share/elasticsearch/data
environment:
discovery.type: single-node
ports:
- '9200:9200'
links:
- 'postgres'
kibana:
image: docker.elastic.co/kibana/kibana:7.16.3
container_name: kibana
# volumes:
# - ./kibana.yml:/usr/share/kibana/config/kibana.yml
links:
- 'elasticsearch'
ports:
- '5601:5601'
transporter:
image: xmlking/postgres-to-es-transporter:latest
container_name: transporter
environment:
DB_NAME: cockpit
POSTGRES_URI: 'postgres://postgres:postgres321@postgres:5432'
ELASTICSEARCH_URI: 'http://elasticsearch:9200'
links:
- 'postgres'
- 'elasticsearch'
volumes:
uploads:
postgres_data:
esdata1:
esdata2: