-
-
Notifications
You must be signed in to change notification settings - Fork 430
/
docker-compose.yml
32 lines (30 loc) · 987 Bytes
/
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
version: "3.4"
services:
service:
build:
context: .
target: development
ports:
- "9000:9000" # development
- "8080:8080" # production
- "35729:35729" # livereload
- "5858:5858" # debugger
- "9229:9229" # profiler
working_dir: &PROJECT_ROOT_DIR /app
# linux permissions: we must explicitly run as the node user
user: node
volumes:
# mount working directory
# https://docs.docker.com/docker-for-mac/osxfs-caching/#delegated
# the container’s view is authoritative (permit delays before updates on the container appear in the host)
- .:/app:delegated
environment:
# Set your key in the .gitignored .env file.
GOOGLE_FONTS_API_KEY: ${GOOGLE_FONTS_API_KEY}
# Overrides default command so things don't shut down after the process ends.
command:
- /bin/sh
- -c
- |
git config --global --add safe.directory /app
while sleep 1000; do :; done