@@ -2,37 +2,37 @@ version: '3.8'
22
33services :
44 owlistic :
5- image : ghcr.io/owlistic-notes/owlistic:0.1.0
6- # build:
7- # context: ./src/backend
8- # dockerfile: Dockerfile
9- # args:
10- # TARGETARCH: ${TARGETARCH:-arm64}
5+ # image: ghcr.io/owlistic-notes/owlistic:0.1.0
6+ build :
7+ context : ./src/backend
8+ dockerfile : Dockerfile
9+ args :
10+ TARGETARCH : ${TARGETARCH:-arm64}
1111 ports :
1212 - " 8080:8080"
1313 depends_on :
1414 - postgres
15- - kafka
15+ - nats
1616 environment :
1717 - APP_ORIGINS=http://localhost*,http://owlistic*,http://owlistic-app*
18+ - BROKER_ADDRESS=nats:4222
1819 - DB_HOST=postgres
1920 - DB_PORT=5432
2021 - DB_USER=admin
2122 - DB_PASSWORD=admin
2223 - DB_NAME=postgres
23- - KAFKA_BROKER=kafka:9092
2424 networks :
2525 - server
2626 - events
2727 - db
2828
2929 owlistic-app :
30- image : ghcr.io/owlistic-notes/owlistic-app:0.1.0
31- # build:
32- # context: ./src/frontend
33- # dockerfile: Dockerfile
34- # args:
35- # TARGETARCH: ${TARGETARCH:-arm64}
30+ # image: ghcr.io/owlistic-notes/owlistic-app:0.1.0
31+ build :
32+ context : ./src/frontend
33+ dockerfile : Dockerfile
34+ args :
35+ TARGETARCH : ${TARGETARCH:-arm64}
3636 ports :
3737 - " 80:80"
3838 depends_on :
@@ -50,33 +50,25 @@ services:
5050 networks :
5151 - db
5252
53- kafka :
54- image : bitnami/kafka:3
55- environment :
56- KAFKA_BROKER_ID : 1
57- KAFKA_ZOOKEEPER_CONNECT : zookeeper:2181
58- ALLOW_PLAINTEXT_LISTENER : yes
59- KAFKA_ADVERTISED_LISTENERS : PLAINTEXT://kafka:9092
60- KAFKA_LISTENERS : PLAINTEXT://0.0.0.0:9092
61- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP : PLAINTEXT:PLAINTEXT
62- ports :
63- - " 9092:9092"
64- depends_on :
65- - zookeeper
66- networks :
67- - events
68-
69- zookeeper :
70- image : bitnami/zookeeper:3
71- environment :
72- ALLOW_ANONYMOUS_LOGIN : yes
53+ nats :
54+ image : nats
55+ command :
56+ - --http_port
57+ - " 8222"
58+ - -js
59+ - -sd
60+ - /var/lib/nats/data
7361 ports :
74- - " 2181:2181"
62+ - " 4222:4222"
63+ - " 8222:8222"
64+ volumes :
65+ - nats_data:/var/lib/nats/data
7566 networks :
7667 - events
7768
7869volumes :
7970 postgres_data :
71+ nats_data :
8072
8173networks :
8274 server :
0 commit comments