-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (58 loc) · 1.93 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
# http://localhost:9527 (login:use API to set user/pass)
# CSRF_TOKEN=$(curl http://localhost:7750/pulsar-manager/csrf-token)
# curl --verbose -H 'X-XSRF-TOKEN: $CSRF_TOKEN' -H 'Cookie: XSRF-TOKEN=$CSRF_TOKEN;' -H 'Content-Type: application/json' -X PUT http://shop_pulsar_manager:7750/pulsar-manager/users/superuser -d '{"name": "pulsar", "password": "pulsar", "description": "Pulsar Manager Admin", "email": "[email protected]"}'
version: '3'
networks:
pulsar:
driver: bridge
services:
pulsar:
image: apachepulsar/pulsar:latest
container_name: pulsar_cluster
# command: bin/pulsar standalone && bin/pulsar-admin source localrun --sourceConfigFile cdc.yaml
# command: bash -c "bin/pulsar standalone && sleep 5 && echo ddad && bin/pulsar-admin source localrun --sourceConfigFile cdc.yaml"
hostname: pulsar
# entrypoint: /entrypoint.sh
environment:
PULSAR_MEM: " -Xms512m -Xmx512m -XX:MaxDirectMemorySize=1g"
volumes:
- ./tools/pulsar/data:/pulsar/data
ports:
- 6650:6650
- 8080:8080 # http://localhost:8080/metrics/
restart: unless-stopped
build:
context: ./
dockerfile: ./Dockerfile
networks:
- pulsar
pulsar-manager:
image: apachepulsar/pulsar-manager:latest
container_name: pulsar_manager
ports:
- 9527:9527
- 7750:7750
depends_on:
- pulsar
links:
- pulsar
environment:
SPRING_CONFIGURATION_FILE: /pulsar-manager/pulsar-manager/application.properties
networks:
- pulsar
mysql:
image: mysql:latest
volumes:
- "./.mysql-data/db:/var/lib/mysql"
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- 3307:3307
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: inventory
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_TCP_PORT: 3307
networks:
- pulsar