-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
48 lines (43 loc) · 1 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
version: "3.8"
services:
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"
nats:
image: nats:0.8.0
entrypoint: "/gnatsd -DV"
ports:
- "8222:8222"
- "4222:4222"
spawn-proxy:
build:
context: https://github.com/eigr/spawn.git#main
dockerfile: ./Dockerfile-proxy
restart: always
network_mode: "host"
environment:
SPAWN_USE_INTERNAL_NATS: "true"
SPAWN_PUBSUB_ADAPTER: nats
SPAWN_STATESTORE_KEY: 3Jnb0hZiHIzHTOih7t2cTEPEpY98Tu1wvQkPfq/XwqE=
PROXY_APP_NAME: spawn
PROXY_CLUSTER_STRATEGY: gossip
PROXY_DATABASE_PORT: 3307
PROXY_DATABASE_TYPE: mariadb
PROXY_HTTP_PORT: 9003
USER_FUNCTION_PORT: 8091
# depends_on:
# - mariadb
# - nats
networks:
mysql-compose-network:
driver: bridge
volumes:
mariadb: