Commit 621b7f15 authored by brent's avatar brent

fix compose

parent 4d94f89f
No preview for this file type
......@@ -15,6 +15,6 @@ mongo.db = "aon_demo"
[prod]
mongo.user = "aon_demo"
mongo.pass = "7Aj2Cke7RYbAzpsy"
mongo.host = "aon-app-server-db"
mongo.host = "aon-mongodb"
mongo.port = 27017
mongo.db = "aon_demo"
\ No newline at end of file
version: "3.9"
version: "3.5"
networks:
default:
name: aon-app
services:
aon-app-server-db:
aon-mongodb:
image: mongo:latest
container_name: mongodb
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
- ./data/aon-mongodb/db:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME="aon_demo"
- MONGO_INITDB_ROOT_PASSWORD="7Aj2Cke7RYbAzpsy"
- MONGO_INITDB_DATABASE="aon_demo"
healthcheck:
test: ["CMD", "mongo", "-u", "$${MONGO_INITDB_ROOT_USERNAME}", "-p", "$${MONGO_INITDB_ROOT_PASSWORD}", "--eval", "db.adminCommand('ping')"]
interval: 30s
timeout: 10s
test: ["CMD", "mongo", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
start_period: 1s
aon-app-server:
image: caduceus/aon-app-server
container_name: aon-app-server
entrypoint: /usr/bin/aon-app-server
deploy:
restart_policy:
condition: on-failure
delay: 1s
max_attempts: 100
window: 120s
ports:
- "8088:8088"
depends_on:
aon-app-server-db:
condition: service_healthy
- aon-mongodb
volumes:
- "/etc/localtime:/etc/localtime"
- ./conf/aon-app-server/conf:/root/conf
networks:
- odysseus
command:
- "/bin/sh"
- "-c"
- "/usr/bin/aon-app-server -c /app.conf"
restart:
unless-stopped
networks:
odysseus:
driver: bridge
ipam:
config:
- subnet: 172.100.0.0/16
- default
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment