-
Notifications
You must be signed in to change notification settings - Fork 3
/
gatsby.yml
33 lines (29 loc) · 984 Bytes
/
gatsby.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.7'
########################################################################################################################
#
# Gatsby
#
# - change example.local in the label traefik.http.routers.client.rule if you wish
#
# - add an entry to your hosts file /etc/hosts:
#
# 127.0.0.1 example.local
#
# - modify the develop script in your package.json to include the arguments '--host 0.0.0.0'
#
########################################################################################################################
services:
client:
image: node:${NODE_VERSION}
working_dir: /usr/src/app
user: "${USER_ID}:${GROUP_ID}"
command: sh -c "yarn install && yarn develop"
restart: unless-stopped
volumes:
- ./src:/usr/src/app
networks:
- net
labels:
- "traefik.enable=true"
- "traefik.http.routers.client.rule=Host(`${BASE_DOMAIN}`)"
- "traefik.http.services.client.loadbalancer.server.port=9000"