Add docker images and compose for dist

This commit is contained in:
Alex Holliday committed 2024-09-30 12:24:53 +08:00
1 parent 9a33dffa50
commit bc85062dd1
9 files changed
+105 -135

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
services:
client:
image: bluewaveuptime/uptime_client:test
ports:
- "80:80"
- "443:443"
depends_on:
- server
server:
image: bluewaveuptime/uptime_server:test
ports:
- "5000:5000"
depends_on:
- redis
- mongodb
environment:
- DB_CONNECTION_STRING=mongodb://mongodb:27017/uptime_db
- REDIS_HOST=redis
redis:
image: bluewaveuptime/uptime_redis:latest
ports:
- "6379:6379"
volumes:
- ./redis/data:/data
mongodb:
image: bluewaveuptime/uptime_database_mongo:latest
volumes:
- ./mongo/data:/data/db
command: ["mongod", "--quiet"]
ports:
- "27017:27017"