FIX merge conflicts
This commit is contained in:
1 parent
0f9f814b27
commit
8bfb187ef0
1 file changed
+8
-25
@@ -1,29 +1,9 @@
|
|||||||
services:
|
services:
|
||||||
client:
|
|
||||||
image: uptime_client:latest
|
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- "80:80"
|
|
||||||
environment:
|
|
||||||
UPTIME_APP_API_BASE_URL: "http://localhost:52345/api/v1"
|
|
||||||
UPTIME_APP_CLIENT_HOST: "http://localhost"
|
|
||||||
volumes:
|
|
||||||
- ./nginx/conf.d:/etc/nginx/conf.d/
|
|
||||||
depends_on:
|
|
||||||
- server
|
|
||||||
server:
|
|
||||||
image: uptime_server:latest
|
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- "52345:52345"
|
|
||||||
env_file:
|
|
||||||
- server.env
|
|
||||||
depends_on:
|
|
||||||
- redis
|
|
||||||
- mongodb
|
|
||||||
redis:
|
redis:
|
||||||
image: uptime_redis:latest
|
image: redis:latest
|
||||||
restart: always
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "6379:6379" # ✅ Expose Redis to host
|
||||||
volumes:
|
volumes:
|
||||||
- ./redis/data:/data
|
- ./redis/data:/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@@ -32,14 +12,17 @@ services:
|
|||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 5
|
retries: 5
|
||||||
start_period: 5s
|
start_period: 5s
|
||||||
|
|
||||||
mongodb:
|
mongodb:
|
||||||
image: uptime_mongo:latest
|
image: mongo:latest
|
||||||
restart: always
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "27017:27017" # ✅ Expose MongoDB to host
|
||||||
command: ["mongod", "--quiet", "--replSet", "rs0", "--bind_ip_all"]
|
command: ["mongod", "--quiet", "--replSet", "rs0", "--bind_ip_all"]
|
||||||
volumes:
|
volumes:
|
||||||
- ./mongo/data:/data/db
|
- ./mongo/data:/data/db
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'mongodb:27017'}]}) }" | mongosh --port 27017 --quiet
|
test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'localhost:27017'}]}) }" | mongosh --port 27017 --quiet
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 30s
|
timeout: 30s
|
||||||
start_period: 0s
|
start_period: 0s
|
||||||
|
|||||||
Reference in new issue
Block a user