-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
80 lines (78 loc) · 2 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
version: '3.4'
services:
database:
image: sostrades/mysqlv4:latest
build:
context: ./dockers/
dockerfile: ./mysql/Dockerfile
container_name: database
restart: always
expose:
- 3306
env_file:
- ./dockers/env/mysql-root-credentials.env
volumes:
- ./dockers/app-data/mysql/data/.:/var/lib/mysql
webserver:
image: sostrades/nginxv4:latest
build:
context: .
dockerfile: ./dockers/frontend/Dockerfile
container_name: webserver
restart: always
volumes:
- ./dockers/frontend/conf.d/.:/etc/nginx/conf.d/
ports:
- '1080:80'
expose:
- 1080
links:
- webapi
depends_on:
- webapi
ontology:
image: sostrades/ontologyv4:latest
build:
context: .
dockerfile: ./dockers/ontology/Dockerfile
container_name: ontology
restart: always
ports:
- '5555:5555'
expose:
- 5555
webapi:
image: sostrades/apiv4:latest
build:
context: .
dockerfile: ./dockers/api/Dockerfile
entrypoint: ["/bin/bash", "/startup/commands.sh"]
container_name: api
restart: always
expose:
- 8000
- 8001
- 8002
- 8003
env_file:
- ./dockers/env/sostrades-database-credentials.env
- ./dockers/env/sostrades-initial-account.env
- ./dockers/env/sostrades-platform.env
links:
- database
- ontology
depends_on:
- database
- ontology
volumes:
- ./dockers/resources/.:/resources/
- ./dockers/api/scripts/.:/startup/
- ./dockers/api/conf/.:/usr/local/sostrades/conf/
- ./dockers/app-data/api/data/.:/usr/local/sostrades/data/
- ./platform/gemseo:/usr/local/sostrades/sources/platform/gemseo
- ./platform/sostrades-core:/usr/local/sostrades/sources/platform/sostrades-core
- ./platform/sostrades-webapi:/usr/local/sostrades/sources/platform/sostrades-webapi
- ./models:/usr/local/sostrades/sources/models
networks:
default:
name: sostrades.local