-
-
Notifications
You must be signed in to change notification settings - Fork 99
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 1.17 KB
/
docker-compose.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
52
---
# docker compose up -d
# docker compose up --build
# docker compose down
# docker compose down -v
services:
mysql:
image: mysql:8
container_name: mysql
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: employees
MYSQL_USER: user
MYSQL_PASSWORD: simplepwd
volumes:
- dbdata:/var/lib/mysql
- ./db/mysql/mysql-employees.sql:/docker-entrypoint-initdb.d/init.sql
mssql:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: mssql
command: /bin/bash /entrypoint.sh
ports:
- 1433:1433
environment:
- ACCEPT_EULA=Y
- MSSQL_PID=Express
- MSSQL_SA_PASSWORD=SomeStrongPwd123
volumes:
- dbdata:/var/opt/mssql/data
- ./db/mssql/docker-entrypoint.sh:/entrypoint.sh
- ./db/mssql/docker-db-init.sh:/db-init.sh
- ./db/mssql/mssql-cars.sql:/db-init.sql
netcore-boilerplate:
image: netcore-boilerplate:compose
container_name: netcore-boilerplate
build:
context: .
ports:
- 5000:8080
environment:
FeatureManagement__DockerCompose: true
depends_on:
- mysql
- mssql
volumes:
dbdata: