-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (40 loc) · 1.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (40 loc) · 1.09 KB
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
version: '3.8'
services:
# application service
game-app:
# image name and version based on environment variables
image: game-app_node-v${CONTAINER_NODE_VERSION:?}
# container name
container_name: rsp-game
# command to run on container startup
command: /bin/bash /init.sh
# build settings
build:
context: ./
dockerfile: docker/Dockerfile
# build arguments based on environment variables
args:
NODE_VERSION: ${CONTAINER_NODE_VERSION:?}
USER: ${HOST_USER:?}
UID: ${HOST_UID:?}
GROUP: ${HOST_GROUP:?}
GID: ${HOST_GID:?}
DEBUG: ${DEBUG:-no}
# environment variables for the container
environment:
APP_ROOT: ${APP_ROOT:?}
NODE_ENV: ${NODE_ENV:-development}
NX_ADD_PLUGINS: false
# working directory inside the container
working_dir: ${APP_ROOT:?}/
# volumes to mount
volumes:
- ./game:${APP_ROOT:?}/
- build_logs:/var/log/app/
- npm_logs:/home/${HOST_USER}/.npm/_logs/
ports:
- "4200:4200"
# Specify volumes
volumes:
build_logs:
npm_logs: