-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-server.yml
40 lines (36 loc) · 1.02 KB
/
docker-compose-server.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
version: "3.6"
volumes:
pkg-cache:
external: true
name: ${PROJECT_NAME}_pkg-cache
services:
kidsplayer_server:
build:
context: .
dockerfile: server/Dockerfile
image: ${PROJECT_NAME}_server
restart: always
container_name: ${PROJECT_NAME}_server
working_dir: /kidsplayer/server
command: 'tail -f /dev/null'
#command: "node --experimental-modules --experimental-json-modules index.js"
user: root
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
extra_hosts:
- "${MQTT_HOST}:${MQTT_HOST_IP}"
volumes:
- .:/kidsplayer
- /kidsplayer/server/node_modules
- /kidsplayer/shared/node_modules
- pkg-cache:/root/.pkg-cache
- ${STORAGE_HOST_PATH}:${STORAGE_CONTAINER_PATH}
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
environment:
- DEBUG=true
- VERBOSE=2
- ENVIRONMENT=default
- NODE_ENV=development
- PWD=/kidsplayer/server
- SERVER_FRONTEND_PATH=../frontend/dist/dev