-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
86 lines (78 loc) · 1.58 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: '3'
services:
consul:
image: consul:1.6
container_name: consul
ports:
- 8300:8300
- 8400:8400
- 8500:8500
service:
image: service
container_name: service
restart: on-failure
build:
context: ./Service
dockerfile: Dockerfile
ports:
- 6001:80
environment:
CONSUL_HOST: http://consul:8500
depends_on:
- consul
- employee
- role
- department
employee:
image: employee
container_name: employee
restart: on-failure
build:
context: ./Employee
dockerfile: Dockerfile
env_file: .env
depends_on:
- consul
- database
role:
image: role
container_name: role
restart: on-failure
build:
context: ./Role
dockerfile: Dockerfile
env_file: .env
depends_on:
- consul
- database
department:
image: department
container_name: department
restart: on-failure
build:
context: ./Department
dockerfile: Dockerfile
env_file: .env
depends_on:
- consul
- database
database:
image: microsoft/mssql-server-linux:2017-latest
container_name: database
ports:
- 1433:1433
volumes:
- /var/opt/mssql
env_file: .env
environment:
ACCEPT_EULA: "Y"
database-schema:
image: mcr.microsoft.com/mssql-tools
container_name: database-schema
volumes:
- ./Assets:/service
working_dir: /service
command: bash -c "chmod +x entry-point.sh && ./entry-point.sh"
env_file: .env
depends_on:
- database