-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
47 lines (45 loc) · 1001 Bytes
/
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
version: '2'
services:
mongo:
image: mongo:3.4
restart: unless-stopped
volumes:
- "mongodata:/data/db"
mariadb:
image: mariadb:10.1
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=imperial
- MYSQL_DATABASE=ptmdb
volumes:
- "mariadata:/var/lib/mysql"
ptm-server:
image: platformtm-server
build:
context: PlatformTM-server
dockerfile: PlatformTM.API/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Docker
restart: unless-stopped
depends_on:
- mongo
- mariadb
volumes:
- "ptmappdata:/app_data"
- "../PlatformTM-server/dbinit:/app_data/dbinit"
ptm-web:
image: platformtm-web
build:
context: PlatformTM-web
dockerfile: Dockerfile
restart: unless-stopped
depends_on:
- ptm-server
volumes:
- "./nginx-server.conf:/etc/nginx/conf.d/default.conf"
ports:
- "8889:80"
volumes:
mongodata:
mariadata:
ptmappdata: