-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.base.yaml
More file actions
39 lines (34 loc) · 865 Bytes
/
Copy pathdocker-compose.base.yaml
File metadata and controls
39 lines (34 loc) · 865 Bytes
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'
x-nx-env-volume: &nx-env
type: bind
source: ./config/env/.env.${NX_APP_ENV:-dev}
target: /usr/src/root/.env
x-nx-tools-volume: &nx-tools
type: bind
source: ./tools
target: /usr/src/root/tools
x-nx-libs-volume: &nx-libs
type: bind
source: ./libs
target: /usr/src/root/libs
x-nx-node-modules-volume: &nx-node-modules
type: bind
source: ./node_modules
target: /usr/src/root/node_modules
services:
nx-base:
# Reference code for healthcheck
# healthcheck:
# test: "wget --no-verbose --tries=1 --spider http://localhost:8081 || exit 1"
# interval: 2s
# timeout: 200s
# retries: 100
environment:
- NX_CLOUD_ACCESS_TOKEN=""
- NX_NO_CLOUD=true
volumes:
- *nx-env
- *nx-tools
- *nx-libs
# - *nx-node-modules
# - ${PNPM_STORE_PATH}:/usr/src/root/.pnpm-store