forked from elexis-eu/lexonomy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
47 lines (41 loc) · 1013 Bytes
/
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
45
46
47
version: '3.4'
x-custom:
service: &service
image: nikolaik/python-nodejs:python3.6-nodejs12
volumes:
- .:/opt/service
- nodemodules:/opt/service/website/node_modules
working_dir: /opt/service/website
service_env: &service_env
LEXONOMY_SITECONFIG: siteconfig.json.template
services:
changelog:
image: ferrarimarco/github-changelog-generator
volumes:
- .:/usr/local/src/your-app
working_dir: /usr/local/src/your-app
user: "${COMPOSE_USER:-1000:1000}"
environment:
HOME: /usr/local/src/your-app
build:
<<: *service
command: npm run build
environment:
<<: *service_env
create-bundles:
<<: *service
command: npm run create-bundles
environment:
<<: *service_env
dev:
<<: *service
command: python3 lexonomy.py 0.0.0.0:8000 0.0.0.0:8080
environment:
<<: *service_env
NODE_ENV: development
ports:
- "8000:8000"
- "8080:8080"
volumes:
nodemodules:
external: true