forked from WormBase/website-public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
44 lines (44 loc) · 1.06 KB
/
docker-compose.dev.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
version: "3.7"
volumes:
node_modules:
yarn_cache:
services:
website:
image: wormbase/website-env:1.0.2
command: "./script/wormbase_server.pl -p 5000 -r -d"
volumes:
- "./:/usr/local/wormbase/website"
environment:
- WEBPACK_SERVER_PORT=${WEBPACK_SERVER_PORT}
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
networks:
- default
- wb-network
webpack:
image: node:latest
ports:
- "${WEBPACK_SERVER_PORT}:${WEBPACK_SERVER_PORT}"
working_dir: /home/node/client
command: >
bash -c "yarn install --frozen-lockfile --verbose &&
yarn run start"
volumes:
- type: bind
source: ./
target: /home/node/
read_only: true
- type: volume
source: node_modules
target: /home/node/client/node_modules
volume:
nocopy: true
- type: volume
source: yarn_cache
target: /usr/local/share/.cache/yarn/v4
environment:
- PORT=${WEBPACK_SERVER_PORT}
networks:
wb-network:
external:
name: wb-network