feat: docker-compose distinguish between arm64 and intel platform

This commit is contained in:
mozzie 2023-09-12 16:42:23 +08:00
parent 1a22bd3836
commit 53f73d045c
2 changed files with 105 additions and 1 deletions

104
docker-compose.arm64.yml Normal file
View File

@ -0,0 +1,104 @@
version: "3.1"
services:
nats:
image: nats
container_name: tavi-nats
restart: always
command: -m 5000
ports:
- "4222:4222"
- "6222:6222"
- "8222:8222"
mongodb:
image: mongo:5.0
container_name: tavi-mongo
restart: always
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
MONGO_INITDB_DATABASE: tavi
volumes:
- ./init.mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
mysql:
image: mysql:latest
container_name: tavi-mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
ports:
- "3306:3306"
volumes:
- ./init.mysql.sql:/docker-entrypoint-initdb.d/init.mysql.sql
nacos:
image: zchazc/nacos-server-arm64:2.0.3
container_name: tavi-nacos
restart: always
environment:
MODE: standalone
ports:
- "8848:8848"
redis:
image: redis:alpine
container_name: tavi-redis
restart: always
environment:
TZ: Asia/Shanghai
command: --requirepass redis
ports:
- "6379:6379"
postgres:
image: postgres:13.1
container_name: tavi-postgres
restart: always
ports:
- "5432:5432"
volumes:
# postgrel->data 挂载出来如果出现docker报错清空 page_data/data以及/orthanc_db文件夹
- ./orthancOHIF/pg_data/data:/var/lib/postgresql/data
- ./orthancOHIF/orthanc.sql:/docker-entrypoint-initdb.d/orthanc.sql
environment:
- POSTGRES_USER=orthanc
- POSTGRES_PASSWORD=orthanc
- POSTGRES_DB=postgres
pacs:
image: osimis/orthanc:20.11.2
container_name: tavi-orthanc
depends_on:
- postgres
restart: always
ports:
- "8042:8042"
- "4242:4242"
volumes:
# 挂载orthanc.json配置
- ./orthancOHIF/config/orthanc.json:/etc/orthanc/orthanc.json:ro
# 不使用 postgre 存储 dicom挂载出来到 ${ORTHANC_DB_MNT},更健康
- ./orthancOHIF/orthanc_db:/var/lib/orthanc/db
environment:
- DICOM_WEB_PLUGIN_ENABLED=true
- POSTGRESQL_PLUGIN_ENABLED=true
- TZ=Asia/Shanghai
command: /etc/orthanc/orthanc.json
ohifv3:
image: ohif/viewer
container_name: tavi-ohif
restart: always
ports:
- "3000:80"
environment:
- APP_CONFIG:/usr/share/nginx/html/app-config.js
volumes:
- ./orthancOHIF/ohifv3/ohif.conf:/etc/nginx/conf.d/default.conf:ro
- ./orthancOHIF/ohifv3/app-config.js:/usr/share/nginx/html/app-config.js:ro
- ./orthancOHIF/ohifv3/logo.png:/usr/share/nginx/html/logo.png:ro
depends_on:
- pacs

View File

@ -24,7 +24,7 @@ services:
- ./init.mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro - ./init.mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
mysql: mysql:
image: mysql:5.7 image: mysql:latest
container_name: tavi-mysql container_name: tavi-mysql
restart: always restart: always
environment: environment: