forked from kgrzybek/modular-monolith-with-ddd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (34 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
version: '3.4'
services:
backend:
container_name: mymeetings_backend
build:
context: ./src/
ports:
- "5000:80"
networks:
- starfish-crm-network
environment:
- Meetings_MeetingsConnectionString=Server=mymeetingsdb,1433;Database=MyMeetings;User=sa;Password=Test@12345
depends_on:
- migrator
restart: on-failure
mymeetingsdb:
build: ./src/Database/
ports:
- 1445:1433
networks:
- starfish-crm-network
migrator:
container_name: mymeetings_db_migrator
build:
context: ./src/Database/
dockerfile: Dockerfile_DatabaseMigrator
networks:
- starfish-crm-network
environment:
- ASPNETCORE_MyMeetings_IntegrationTests_ConnectionString=Server=mymeetingsdb,1433;Database=MyMeetings;User=sa;Password=Test@12345
command: ["./wait-for-it.sh", "mymeetingsdb:1433", "--timeout=60", "--", "/bin/bash", "/entrypoint_DatabaseMigrator.sh"]
restart: on-failure
networks:
starfish-crm-network: