-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yaml
99 lines (89 loc) · 2.22 KB
/
docker-compose.yaml
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
version: "3.8"
services:
otel:
image: otel/opentelemetry-collector-contrib:0.60.0
command: [ "--config=/conf/otel-collector-config.yaml" ]
privileged: true
ports:
- 4317:4317
- 4318:4318
volumes:
- ./config/otel-collector-config.yaml:/conf/otel-collector-config.yaml
links:
- zipkin
zipkin:
image: openzipkin/zipkin-slim
ports:
- 9411:9411
privileged: true
postgres:
image: postgres
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DATABASE=eigr-functions-db
- PGDATA=/var/lib/postgresql/data/pgdata
ports:
- "5432:5432"
volumes:
- postgres:/var/lib/postgresql/data
mysql:
image: mysql:5.7
environment:
MYSQL_USER: admin
MYSQL_PASSWORD: "admin"
MYSQL_ROOT_PASSWORD: "admin"
MYSQL_DATABASE: "eigr-functions-db"
ports:
- "3306:3306"
volumes:
- mysql:/var/lib/mysql
networks:
- mysql-compose-network
mariadb:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: eigr-functions-db
MYSQL_USER: admin
MYSQL_PASSWORD: admin
volumes:
- mariadb:/var/lib/mysql
ports:
- "3307:3306"
adminer:
image: adminer
ports:
- 8080:8080
networks:
- mysql-compose-network
nats:
image: 'nats:latest'
ports:
- "4222:4222"
spawn-proxy:
image: eigr/spawn-proxy:1.4.3
restart: always
environment:
PROXY_APP_NAME: spawn
PROXY_HTTP_PORT: 9001
PROXY_DATABASE_TYPE: postgres
PROXY_DATABASE_NAME: eigr-functions-db
PROXY_DATABASE_USERNAME: postgres
PROXY_DATABASE_SECRET: password
PROXY_DATABASE_HOST: localhost
PROXY_DATABASE_PORT: 5432
SPAWN_STATESTORE_KEY: 3Jnb0hZiHIzHTOih7t2cTEPEpY98Tu1wvQkPfq/XwqE=
USER_FUNCTION_HOST: 0.0.0.0 # Your NodeJS runtime host
USER_FUNCTION_PORT: 8090 # Your NodeJS runtime exposed port
# network_mode: host # only uncomment this if you're running your nodejs locally in Linux, check note below for Windows
ports:
- "9001:9001"
networks:
mysql-compose-network:
driver: bridge
volumes:
mysql:
postgres:
mariadb: