-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml.example
More file actions
129 lines (119 loc) · 3.53 KB
/
Copy pathdocker-compose.yml.example
File metadata and controls
129 lines (119 loc) · 3.53 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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# =================================================================================================
# Project: SCAN - Searching Chemical Actions and Networks
# Hokkaido University (2021)
# Last Update: Q2 2023
# ________________________________________________________________________________________________
# Authors: Mikael Nicander Kuwahara (Lead Developer) [2022-]
# Jun Fujima (Former Lead Developer) [2021]
# NorthGrid (Support Dev)
# ________________________________________________________________________________________________
# Description: This is the docker-compose template file for the entire SCAN project that defines
# all services and more that is required in order to run the app.
# ------------------------------------------------------------------------------------------------
# Notes:
# ------------------------------------------------------------------------------------------------
# References:
# =================================================================================================
version: '3.5'
services:
# MySQL, MariaDB version
db:
image: scan-mariadb
container_name: mysql_host
env_file:
- .env
volumes:
- ./scan-mariadb/docker/db/data:/var/lib/mysql
- ./scan-mariadb/docker/db/my.cnf:/etc/mysql/conf.d/my.cnf
- ./scan-mariadb/docker/db/init:/docker-entrypoint-initdb.d
- ./scan-mariadb/docker/db/scripts:/scripts
ports:
- 127.0.0.1:3306:3306
networks:
- scan-network
user: '${USERID}:${GROUPID}'
# phpMyAdmin
phpmyadmin:
container_name: test_phpmyadmin
image: phpmyadmin/phpmyadmin
env_file:
- .env
ports:
- 127.0.0.1:8080:80
networks:
- scan-network
# Redis - in-memory data structure store
redis:
restart: always
image: redis:6.0
container_name: scan_redis
expose:
- "6379"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
networks:
- scan-network
api_public:
image: scan_api_public
container_name: scan_api_public
env_file: .env
ports:
- "127.0.0.1:${PUBLIC_API_PORT}:8000"
volumes:
- ./scan_api_public/keyfiles:/keyfiles
depends_on:
- redis
networks:
- scan-network
user: '${USERID}:${GROUPID}'
api_internal:
image: scan_api_internal
container_name: scan_api_internal
env_file: .env
ports:
- '127.0.0.1:${API_PORT}:8000'
networks:
- scan-network
app:
image: scan-app
env_file: .env
container_name: scan_app
ports:
- "0.0.0.0:3000:3000"
networks:
- scan-network
# make sure the real path of the SSL Certs are correct in the last line under volumes
nginx:
env_file: .env
container_name: nginx
image: nginx:alpine
ports:
- "0.0.0.0:80:80"
- "0.0.0.0:443:443"
volumes:
- ./scan-reverse-proxy/root:/usr/local/nginx/html
- ./scan-reverse-proxy/conf.d:/etc/nginx/conf.d
- ./scan-reverse-proxy/log:/var/log/nginx/
- /etc/ssl/certs:/etc/ssl/certs # Here is the local SSL Certs path
depends_on:
app:
condition: service_started
networks:
- scan-network
observer:
image: scan_data_observer
container_name: observer
env_file: .env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./scan_data_observer/data/:/data
- ./scan_data_observer/logs/:/logs
networks:
- scan-network
networks:
scan-network:
name: scan-network
driver: bridge