initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=CDC demo Go backend
|
||||
Wants=cdc-postgres.service cdc-nats.service cdc-debezium.service
|
||||
After=cdc-postgres.service cdc-nats.service cdc-debezium.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=%h/.local/share/live-inventory-cdc-demo
|
||||
Environment=HTTP_ADDR=:8080
|
||||
Environment=DATABASE_URL=postgres://postgres:postgres@localhost:5453/postgres?sslmode=disable
|
||||
Environment=NATS_URL=nats://localhost:4222
|
||||
Environment=NATS_SUBJECT=postgres.public.inventory
|
||||
ExecStart=%h/.local/bin/inventory-cdc-demo
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user