-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yml
41 lines (38 loc) · 1.01 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
version: "3.3"
services:
mssql_source:
image: "mcr.microsoft.com/mssql/server:latest"
container_name: "mssql_source_db"
ports:
- "1433:1433"
environment:
ACCEPT_EULA: Y
SA_PASSWORD: ${SOURCE_DB_PASSWORD}
env_file:
- .env
mssql_destination:
image: "mcr.microsoft.com/mssql/server:latest"
container_name: "mssql_destination_db"
ports:
- "1434:1433"
environment:
ACCEPT_EULA: Y
SA_PASSWORD: ${DESTINATION_DB_PASSWORD}
env_file:
- .env
app:
build: .
depends_on:
- mssql_source
- mssql_destination
environment:
SOURCE_DB_HOST: mssql_source
SOURCE_DB_NAME: ${SOURCE_DB_NAME}
SOURCE_DB_USERNAME: ${SOURCE_DB_USERNAME}
SOURCE_DB_PASSWORD: ${SOURCE_DB_PASSWORD}
DESTINATION_DB_HOST: mssql_destination
DESTINATION_DB_NAME: ${DESTINATION_DB_NAME}
DESTINATION_DB_USERNAME: ${DESTINATION_DB_USERNAME}
DESTINATION_DB_PASSWORD: ${DESTINATION_DB_PASSWORD}
env_file:
- .env