mirror of https://gitee.com/CoreUnion/CoreShop.git
add docer-componse
parent
8d06dc12a7
commit
cd1d71ca88
@ -0,0 +1,11 @@
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:5.0
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY ./ /app
|
||||
|
||||
ENV TZ=Asia/Shanghai
|
||||
|
||||
ENTRYPOINT ["dotnet", "CoreCms.Net.Web.Admin.dll"]
|
@ -0,0 +1,14 @@
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:5.0
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY ./ /app
|
||||
|
||||
ENV TZ=Asia/Shanghai
|
||||
|
||||
RUN sed -i 's/MinProtocol = TLSv1.2/MinProtocol = TLSv1/g' /etc/ssl/openssl.cnf
|
||||
RUN sed -i 's/MinProtocol = TLSv1.2/MinProtocol = TLSv1/g' /usr/lib/ssl/openssl.cnf
|
||||
|
||||
ENTRYPOINT ["dotnet", "CoreCms.Net.Web.WebApi.dll"]
|
@ -0,0 +1,54 @@
|
||||
version: '3'
|
||||
services:
|
||||
frontservice:
|
||||
container_name: front-backend
|
||||
build:
|
||||
context: ./front/publish
|
||||
dockerfile: Dockerfile
|
||||
depends_on:
|
||||
- redis
|
||||
- mysql
|
||||
ports:
|
||||
- 8088:80
|
||||
labels:
|
||||
description: 'front backend web'
|
||||
restart: always
|
||||
|
||||
webapiservice:
|
||||
container_name: web-api
|
||||
build:
|
||||
context: ./api/publish
|
||||
dockerfile: Dockerfile
|
||||
depends_on:
|
||||
- redis
|
||||
- mysql
|
||||
ports:
|
||||
- 8089:80
|
||||
labels:
|
||||
description: 'web api'
|
||||
restart: always
|
||||
|
||||
redis:
|
||||
image: redis:lastest
|
||||
ports:
|
||||
- 6379:6379
|
||||
expose:
|
||||
- 6379
|
||||
volumes:
|
||||
command:
|
||||
redis-server
|
||||
|
||||
mysql:
|
||||
image: mysql:5.7.19
|
||||
restart: always
|
||||
ports:
|
||||
- 3306:3306
|
||||
expose:
|
||||
- 3306
|
||||
volumes:
|
||||
- /usr/local/mysql/data:/var/lib/mysql
|
||||
- /usr/local/mysql/conf.d:/etc/mysql/conf.d
|
||||
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --lower_case_table_names=2
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=admin
|
||||
|
@ -0,0 +1,48 @@
|
||||
version: '3'
|
||||
services:
|
||||
frontservice:
|
||||
container_name: front-backend
|
||||
build:
|
||||
context: ./front/publish
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- 8088:80
|
||||
labels:
|
||||
description: 'front backend web'
|
||||
restart: always
|
||||
|
||||
webapiservice:
|
||||
container_name: web-api
|
||||
build:
|
||||
context: ./api/publish
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- 8089:80
|
||||
labels:
|
||||
description: 'web api'
|
||||
restart: always
|
||||
|
||||
# redis:
|
||||
# image: redis:lastest
|
||||
# ports:
|
||||
# - 6379:6379
|
||||
# expose:
|
||||
# - 6379
|
||||
# volumes:
|
||||
# command:
|
||||
# redis-server
|
||||
|
||||
# mysql:
|
||||
# image: mysql:5.7.19
|
||||
# restart: always
|
||||
# ports:
|
||||
# - 3306:3306
|
||||
# expose:
|
||||
# - 3306
|
||||
# volumes:
|
||||
# - /usr/local/mysql/data:/var/lib/mysql
|
||||
# - /usr/local/mysql/conf.d:/etc/mysql/conf.d
|
||||
# command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --lower_case_table_names=2
|
||||
# environment:
|
||||
# - MYSQL_ROOT_PASSWORD=admin
|
||||
|
Loading…
Reference in New Issue