Ai
2 Star 3 Fork 4

Eolink/eoapi-remote-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yaml 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
buqiyuan 提交于 2022-12-06 10:42 +08:00 . chore: update docker config
version: '3'
services:
eoapi-remote-server:
# build: 从当前路径构建镜像
# build: .
image: eolinker/eoapi-remote-server:latest
container_name: eoapi-remote-server
deploy:
restart_policy:
condition: on-failure
max_attempts: 10
env_file:
- .env
ports:
- '${EOAPI_SERVER_PORT}:${EOAPI_SERVER_PORT}'
networks:
- eoapi_net
mysql:
image: mysql:latest
container_name: eoapi-mysql
deploy:
restart_policy:
condition: on-failure
max_attempts: 10
env_file:
- .env
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci #设置utf8字符集
ports:
- '33066:3306'
volumes:
- ./sample/mysql/:/var/lib/mysql/ # ./sample/mysql/路径可以替换成自己的路径
networks:
- eoapi_net
eoapi:
image: eolinker/eoapi:latest
container_name: eoapi
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
env_file:
- .env
ports:
- '${EOAPI_WEB_SERVER_POST}:80'
# volumes:
# - ./nginx.conf:/etc/nginx/conf.d/default.conf
networks:
- eoapi_net
eoapi-test-server:
image: eolinker/eoapi-test-server:latest
container_name: eoapi-test-server
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
env_file:
- .env
ports:
- '${EOAPI_TEST_SERVER_PORT}:4201'
- '${EOAPI_WEBSOCKET_POST}:4202'
networks:
- eoapi_net
networks:
eoapi_net:
name: eoapi_net
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/eolink_admin/eoapi-remote-server.git
git@gitee.com:eolink_admin/eoapi-remote-server.git
eolink_admin
eoapi-remote-server
eoapi-remote-server
main

搜索帮助