-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.debug.yml
98 lines (93 loc) · 2.74 KB
/
docker-compose.debug.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
87
88
89
90
91
92
93
94
95
96
97
98
# Copyright 2023 Capgemini
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
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
ports:
- '1080:80'
expose:
- 1080
links:
- webapi
depends_on:
- webapi
volumes:
- ./dockers/frontend/conf.d/.:/etc/nginx/conf.d/
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/debugCommands.sh"]
ports:
- 5678:5678
- 5679:5679
- 5680:5680
- 5681:5681
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/api/scripts/.:/startup/
- ./dockers/api/conf/.:/usr/local/sostrades/conf/
- ./dockers/resources/.:/resources/
- ./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