1 Star 0 Fork 14

Jale Shaw/signatrust

forked from openEuler/signatrust 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yaml 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
TommyLike 提交于 2023-07-26 08:39 . Use none-root user for container
version: '3'
services:
data-server:
build:
context: .
args:
BINARY: data-server
CONFIG: ./docker
dockerfile: ./docker/Dockerfile.data-server
hostname: data-server
entrypoint: ["/bin/bash", "-cx", "/app/sqlx database create; /app/sqlx migrate run; /app/data-server"]
depends_on:
- redis
- database
stdin_open: true
tty: true
user: signatrust
environment:
RUST_LOG: $RUST_LOG
DATABASE_URL: $DATABASE_URL
ports:
- "8088:8088"
control-server:
build:
context: .
args:
BINARY: control-server
CONFIG: ./docker
dockerfile: ./docker/Dockerfile.data-server
hostname: control-server
depends_on:
- redis
- database
- data-server
stdin_open: true
tty: true
user: signatrust
environment:
RUST_LOG: $RUST_LOG
entrypoint: ["/bin/bash", "-cx", "sleep 5; /app/control-server"]
ports:
- "8080:8080"
redis:
image: openeuler/redis:6.2.7-22.03-lts
hostname: redis
stdin_open: true
tty: true
volumes:
- redis:/var/lib/redis/data
command: redis-server --requirepass $REDIS_PASSWD
ports:
- "6379:6379"
database:
image: mysql:8.0
hostname: database
volumes:
- database:/var/lib/mysql
environment:
MYSQL_DATABASE: $MYSQL_DATABASE
MYSQL_PASSWORD: $MYSQL_PASSWORD
MYSQL_USER: $MYSQL_USER
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
ports:
- "3306:3306"
volumes:
database:
redis:
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiaojiale2023/signatrust.git
[email protected]:xiaojiale2023/signatrust.git
xiaojiale2023
signatrust
signatrust
master

搜索帮助