-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
99 lines (93 loc) · 3.04 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: '3.9'
services:
nginx:
image: nginx:alpine
ports:
- '80:80'
- '443:443'
volumes:
- './nginx.conf:/etc/nginx/conf.d/default.conf'
- './index.html:/var/www/index.html:ro'
- 'taxa_tree_gbif:/var/www/taxa_tree_gbif:ro'
- 'taxa_tree_itis:/var/www/taxa_tree_itis:ro'
- 'taxa_tree_col:/var/www/taxa_tree_col:ro'
- 'taxa_tree_worms:/var/www/taxa_tree_worms:ro'
- 'taxa_tree_stats:/var/www/taxa_tree_stats:ro'
- './fullchain.pem:/etc/letsencrypt/live/taxon.specifysoftware.org/fullchain.pem:ro'
- './privkey.pem:/etc/letsencrypt/live/taxon.specifysoftware.org/privkey.pem:ro'
networks:
- front_end
- nginx
depends_on:
- front_end
database:
image: mariadb
volumes:
- 'database:/var/lib/mysql'
- 'taxa_tree_col_working_dir:/home/specify/taxa_tree_col_working_dir'
- 'taxa_tree_worms_working_dir:/home/specify/taxa_tree_worms_working_dir'
environment:
- MYSQL_ROOT_PASSWORD=root
networks:
- database
back_end:
build:
context: ./
target: back_end
args:
LINK: 'http://localhost/'
MYSQL_HOST: database
MYSQL_USER: root
MYSQL_PASSWORD: root
volumes:
- 'taxa_tree_gbif:/home/specify/taxa_tree_gbif'
- 'taxa_tree_itis:/home/specify/taxa_tree_itis'
- 'taxa_tree_col:/home/specify/taxa_tree_col'
- 'taxa_tree_worms:/home/specify/taxa_tree_worms'
- 'taxa_tree_stats:/home/specify/taxa_tree_stats'
- 'taxa_tree_gbif_working_dir:/home/specify/taxa_tree_gbif_working_dir'
- 'taxa_tree_itis_working_dir:/home/specify/taxa_tree_itis_working_dir'
- 'taxa_tree_col_working_dir:/home/specify/taxa_tree_col_working_dir'
- 'taxa_tree_worms_working_dir:/home/specify/taxa_tree_worms_working_dir'
- 'taxa_tree_stats_working_dir:/home/specify/taxa_tree_stats_working_dir'
networks:
- database
- nginx
depends_on:
- database
front_end:
build:
context: ./
target: front_end
volumes:
- 'taxa_tree_gbif:/var/www/taxa_tree_gbif:ro'
- 'taxa_tree_itis:/var/www/taxa_tree_itis:ro'
- 'taxa_tree_col:/var/www/taxa_tree_col:ro'
- 'taxa_tree_worms:/var/www/taxa_tree_worms:ro'
- 'taxa_tree_stats:/var/www/taxa_tree_stats:ro'
- 'taxa_tree_gbif_working_dir:/var/www/taxa_tree_gbif_working_dir'
- 'taxa_tree_itis_working_dir:/var/www/taxa_tree_itis_working_dir/'
- 'taxa_tree_col_working_dir:/var/www/taxa_tree_col_working_dir'
- 'taxa_tree_worms_working_dir:/var/www/taxa_tree_worms_working_dir'
- 'taxa_tree_stats_working_dir:/var/www/taxa_tree_stats_working_dir'
networks:
- front_end
networks:
nginx:
driver: bridge
database:
driver: bridge
front_end:
driver: bridge
volumes:
database:
taxa_tree_gbif:
taxa_tree_itis:
taxa_tree_col:
taxa_tree_worms:
taxa_tree_stats:
taxa_tree_gbif_working_dir:
taxa_tree_itis_working_dir:
taxa_tree_col_working_dir:
taxa_tree_worms_working_dir:
taxa_tree_stats_working_dir: