forked from Speckoz/UniLinks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (53 loc) · 1.02 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (53 loc) · 1.02 KB
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
version: "3.3"
volumes:
mysqldata:
networks:
prod:
services:
mysql:
image: mysql:5.7
restart: always
environment:
- MYSQL_ROOT_PASSWORD=numsey
- MYSQL_DATABASE=unilinks
volumes:
- mysqldata:/var/lib/mysql
networks:
- prod
nginx-frontend:
image: nginx-frontend
build:
context: .
dockerfile: Dockerfile
depends_on:
- mvc-1
networks:
- prod
ports:
- 80:80
api-1:
build:
context: ./Speckoz.UniLinks
dockerfile: UniLinks.API/Dockerfile
networks:
- prod
restart: always
environment:
- ASPNETCORE_ENVIROMENT=Production
- DBHOST=mysql
- DBPASSWORD=numsey
depends_on:
- mysql
mvc-1:
build:
context: ./Speckoz.UniLinks
dockerfile: UniLinks.Client.Site/Dockerfile
networks:
- prod
restart: always
environment:
- ASPNETCORE_ENVIROMENT=Production
- API_URL=http://api-1/api
- LAST_COMMIT=${LAST_COMMIT}
depends_on:
- api-1