feat: drone.ci
This commit is contained in:
parent
f8c523b921
commit
e18c55a1a2
|
@ -1,6 +1,20 @@
|
||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
|
nginx:
|
||||||
|
image: nginx:1.22
|
||||||
|
restart: always
|
||||||
|
container_name: backset-nginx
|
||||||
|
volumes:
|
||||||
|
- /www/wwwroot/backset/nginx/conf.d/:/etc/nginx/conf.d/
|
||||||
|
- /www/wwwroot/backset/nginx/ssl:/etc/nginx/ssl/
|
||||||
|
- /www/wwwroot/backset/nginx/html:/usr/share/nginx/html/
|
||||||
|
networks:
|
||||||
|
backset-net:
|
||||||
|
aliases:
|
||||||
|
- backset-nginx
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:5.7
|
image: mysql:5.7
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -16,7 +30,11 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- /www/wwwroot/backset/mysql/conf/my.cnf:/etc/mysql/conf.d/mysqld.cnf
|
- /www/wwwroot/backset/mysql/conf/my.cnf:/etc/mysql/conf.d/mysqld.cnf
|
||||||
- /www/wwwroot/backset/mysql/data:/var/lib/mysql
|
- /www/wwwroot/backset/mysql/data:/var/lib/mysql
|
||||||
- /www/wwwroot/backset/mysql/logs:/var/log/mysql
|
- /www/wwwroot/backset/mysql/logs:/var/log/mysqld
|
||||||
|
networks:
|
||||||
|
backset-net:
|
||||||
|
aliases:
|
||||||
|
- backset-mysql
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis
|
image: redis
|
||||||
|
@ -28,6 +46,10 @@ services:
|
||||||
- /www/wwwroot/backset/redis/conf:/etc/redis/redis.conf
|
- /www/wwwroot/backset/redis/conf:/etc/redis/redis.conf
|
||||||
- /www/wwwroot/backset/redis/data:/data
|
- /www/wwwroot/backset/redis/data:/data
|
||||||
command: redis-server --requirepass "cr654654." --port 26379
|
command: redis-server --requirepass "cr654654." --port 26379
|
||||||
|
networks:
|
||||||
|
backset-net:
|
||||||
|
aliases:
|
||||||
|
- backset-redis
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: backset/server:1.0
|
image: backset/server:1.0
|
||||||
|
@ -38,9 +60,19 @@ services:
|
||||||
container_name: backset-server
|
container_name: backset-server
|
||||||
ports:
|
ports:
|
||||||
- 7001:7001
|
- 7001:7001
|
||||||
|
expose:
|
||||||
|
- 7001
|
||||||
|
networks:
|
||||||
|
backset-net:
|
||||||
|
aliases:
|
||||||
|
- backset-server
|
||||||
links:
|
links:
|
||||||
- mysql:mysql
|
- mysql:mysql
|
||||||
- redis:redis
|
- redis:redis
|
||||||
depends_on:
|
depends_on:
|
||||||
- mysql
|
- mysql
|
||||||
- redis
|
- redis
|
||||||
|
- nginx
|
||||||
|
|
||||||
|
networks:
|
||||||
|
backset-net:
|
Loading…
Reference in New Issue
Block a user