-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (62 loc) · 1.41 KB
/
docker-compose.yml
File metadata and controls
68 lines (62 loc) · 1.41 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
name: "3dbionotes-web"
#
# COMMON ONLY SETTINGS
#
services:
# Web Application
web:
image: ${IMAGE_NAME}
build:
context: .
env_file: .env
ports:
- "${APP_EXT_PORT}:3000"
# Data Base
db:
image: mysql:8.0
container_name: db
command:
# - '--local_infile=1' in development
- '--default-authentication-plugin=mysql_native_password'
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWD}
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWD}
volumes:
- dbdata:/var/lib/mysql
- ${DB_EXT_DBS}:/media/databases
expose:
- "3306"
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
# blast:
# image: ncbi/blast
# command: "/bin/bash"
# deploy:
# restart_policy:
# condition: on-failure
# delay: 5s
# max_attempts: 3
# window: 120s
# volumes:
# - ${BLAST_DB}:/blast/blastdb
# - ${BLAST_DB_CUSTOM}:/blast/blastdb_custom
# - ${BLAST_QUERIES}:/blast/queries
# - ${BLAST_RESULTS}:/blast/results
# networks:
# - bnts-nw
volumes:
dbdata: null
networks:
bnts-nw:
name: ${APP_NETWORK_NAME}
external: true