-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
57 lines (55 loc) · 1.5 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
version: '3.5'
volumes:
svip_pgdata:
seqrepo:
web_root:
services:
ui:
build: ./svip-o-vue
hostname: ui
volumes:
- ./svip-o-vue:/app:delegated
- web_root:/web_root
# allows the root git repo to be accessed in the container, which
# lets GitRevisionPlugin tag each build with its commit hash, branch, etc.
- .git:/app/.git:delegated,ro
# TODO: DM: remove this git config --global --add safe.directory /app it should not be there!!
command: bash -c "git config --global --add safe.directory /app && npx browserslist@latest --update-db && npm ci && npm run build && rm -rf /web_root/* && cp -R /app/dist/* /web_root/"
env_file:
- .env
depends_on:
- api
restart: 'no'
api:
build: ./svip_api
hostname: api
volumes:
- ./svip_api:/app
- ./svip_api/api/static:/vol/web/static:z
- '/usr/local/share/seqrepo:/usr/local/share/seqrepo'
depends_on:
- db
- redis
environment:
- HGVS_SEQREPO_DIR=/usr/local/share/seqrepo/latest
- PYTHONUNBUFFERED=1
env_file:
- .env
db:
image: 'postgres:11.1'
hostname: db
shm_size: '2gb'
restart: unless-stopped
command: -c 'max_wal_size=2GB'
volumes:
- 'svip_pgdata:/var/lib/postgresql/data'
- ./svip_db_backups:/backups
- ./service_config/postgres:/docker-entrypoint-initdb.d
env_file:
- .env
redis:
image: 'redis:alpine'
hostname: redis
restart: unless-stopped
env_file:
- .env