-
Notifications
You must be signed in to change notification settings - Fork 134
/
docker-compose.override.yml
51 lines (47 loc) · 1.08 KB
/
docker-compose.override.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '3.8'
services:
redis:
container_name: redis
image: redis:latest
ports:
- 6379:6379
networks:
- aspnetapp-net
mysql:
image: mysql:5.7
container_name: mysql
ports:
- "3306:3306"
restart: always
environment:
- MYSQL_ROOT_PASSWORD=123456
- TZ=Asia/Shanghai
volumes:
- /app/data/mysql:/var/lib/mysql
- ./.ide/mysql-init:/docker-entrypoint-initdb.d
- ./.ide/mysql-config/my.cnf:/etc/mysql/my.cnf
networks:
- aspnetapp-net
senparc.ncf.web:
build:
context: .
dockerfile: src/back-end/Senparc.Web/Dockerfile
args:
- TARGET_PLATFORM=linux
container_name: senparc.ncf.web
ports:
- "5000:8080"
restart: always
depends_on:
- mysql
- redis
environment:
- TZ=Asia/Shanghai
- ASPNETCORE_ENVIRONMENT=Development
networks:
- aspnetapp-net
volumes:
- ./src/back-end/Senparc.Web/appsettings.json:/app/appsettings.json
networks:
aspnetapp-net:
driver: bridge