-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
49 lines (46 loc) · 1.39 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
version: "3"
services:
# Cli
node:
image: node:12.18.3
container_name: node-cli
working_dir: /app
volumes:
- .:/app
# Serve source files
dev:
image: node:12.18.3
container_name: core-development
user: node
working_dir: /app
volumes:
- ./node_modules:/app/node_modules
- ./public:/app/public
- ./package.json:/app/package.json
- ./tsconfig.json:/app/tsconfig.json
- ./webpack.config.js:/app/webpack.config.js
- ./webpack.dev.js:/app/webpack.dev.js
# use src files
- ./src:/app/src
environment:
PORT: 8080
DOCKER_HOST: 0.0.0.0
ports:
- 8080:8080
command: npm run start
# Serve actual package dist files. Builds the dist files from source every time the container is started
pkg-sandbox:
build:
context: .
dockerfile: ./docker/Dockerfile
container_name: core-pkg-sandbox
working_dir: /app
stdin_open: true
volumes:
- ./tsconfig.json:/app/package/tsconfig.json
- ./src:/app/package/src
- ./docker/entrypoint.sh:/app/entrypoint.sh
- ./docker/sandbox/App.js:/app/sandbox/src/App.js
ports:
- 3000:3000
command: sh entrypoint.sh