Commit 4d94f89f authored by brent's avatar brent

add aon-app-server compose

parent 704a0984
No preview for this file type
...@@ -3,4 +3,8 @@ ...@@ -3,4 +3,8 @@
out out
gen gen
.history .history
.vscode .vscode
\ No newline at end of file .DS_Store
conf/.DS_Store
conf/admin-backend/.DS_Store
data/.DS_Store
\ No newline at end of file
No preview for this file type
appname = aon_app_server
httpport = 8088
runmode = prod
copyrequestbody = true
[dev]
apikey = "Rbhpcp0FKNrYNA1nZkrwrIbD0YSSRlVG"
taskUrl = "https://api.aonet.ai/api/v1"
imageUrl = "https://tmp-file.aigic.ai/api/v1/upload/persistence"
[test]
apikey = "Rbhpcp0FKNrYNA1nZkrwrIbD0YSSRlVG"
taskUrl = "https://api.aonet.ai/api/v1"
imageUrl = "https://tmp-file.aigic.ai/api/v1/upload/persistence"
[prod]
apikey = "Rbhpcp0FKNrYNA1nZkrwrIbD0YSSRlVG"
taskUrl = "https://api.aonet.ai/api/v1"
imageUrl = "https://tmp-file.aigic.ai/api/v1/upload/persistence"
include "mysql.conf"
include "mongo.conf"
\ No newline at end of file
[dev]
mongo.user = "aon_demo"
mongo.pass = "7Aj2Cke7RYbAzpsy"
mongo.host = "127.0.0.1"
mongo.port = 27017
mongo.db = "aon_demo"
[test]
mongo.user = "aon_demo"
mongo.pass = "7Aj2Cke7RYbAzpsy"
mongo.host = "18.167.203.17"
mongo.port = 27017
mongo.db = "aon_demo"
[prod]
mongo.user = "aon_demo"
mongo.pass = "7Aj2Cke7RYbAzpsy"
mongo.host = "aon-app-server-db"
mongo.port = 27017
mongo.db = "aon_demo"
\ No newline at end of file
[dev]
mysql.user = "aon_demo"
mysql.pass = "7Aj2Cke7RYbAzpsy"
mysql.host = "18.167.203.17"
mysql.port = 3306
mysql.db = "aon_demo"
[test]
mysql.user = "aon_demo"
mysql.pass = "7Aj2Cke7RYbAzpsy"
mysql.host = "18.167.203.17"
mysql.port = 3306
mysql.db = "aon_demo"
[prod]
mysql.user = "aon_demo"
mysql.pass = "7Aj2Cke7RYbAzpsy"
mysql.host = "18.167.203.17"
mysql.port = 3306
mysql.db = "aon_demo"
\ No newline at end of file
version: "3.9"
services:
aon-app-server-db:
image: mongo:latest
container_name: mongodb
ports:
- "27017:27017"
volumes:
- mongo-data:/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
retries: 5
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
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
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