aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yaml
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2023-10-09 15:31:04 +0000
committerterminaldweller <devi@terminaldweller.com>2023-10-09 15:31:04 +0000
commit0007b69fdbbcf463eeb538c02dc191ccd6f62df9 (patch)
tree87f1c31a0730b995abfc49291906cb9e6c8711d7 /docker-compose.yaml
parentInitial commit (diff)
downloadsms-webhook-dev.tar.gz
sms-webhook-dev.zip
onedev
Diffstat (limited to 'docker-compose.yaml')
-rw-r--r--docker-compose.yaml57
1 files changed, 57 insertions, 0 deletions
diff --git a/docker-compose.yaml b/docker-compose.yaml
new file mode 100644
index 0000000..b019e9e
--- /dev/null
+++ b/docker-compose.yaml
@@ -0,0 +1,57 @@
+version: "3.9"
+services:
+ sms-webhook:
+ image: sms-webhook
+ build:
+ context: .
+ deploy:
+ resources:
+ limits:
+ memory: 256M
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "100m"
+ networks:
+ - smsnet
+ restart: unless-stopped
+ ports:
+ - "127.0.0.1:8090:8090"
+ depends_on:
+ - redis
+ # volumes:
+ # - /etc/letsencrypt/live/sms.terminaldweller.com/fullchain.pem:/etc/letsencrypt/live/sms.terminaldweller.com/fullchain.pem
+ # - /etc/letsencrypt/live/sms.terminaldweller.com/privkey.pem:/etc/letsencrypt/live/sms.terminaldweller.com/privkey.pem
+ cap_drop:
+ - ALL
+ environment:
+ - SERVER_DEPLOYMENT_TYPE=deployment
+ entrypoint: ["/sms-webhook/sms-webhook"]
+ command: ["serve", "--http=0.0.0.0:8090"]
+ volumes:
+ - pb-vault:/sms-webhook/pb_data
+ redis:
+ image: redis:7.2-alpine
+ deploy:
+ resources:
+ limits:
+ memory: 128M
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "100m"
+ networks:
+ - smsnet
+ restart: unless-stopped
+ ports:
+ - "127.0.0.1:6379:6379"
+ environment:
+ - ALLOW_EMPTY_PASSWORD=yes
+ volumes:
+ - sms-vault:/data/
+networks:
+ smsnet:
+ driver: bridge
+volumes:
+ sms-vault:
+ pb-vault: