-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
54 lines (54 loc) · 1.87 KB
/
compose.dev.yaml
File metadata and controls
54 lines (54 loc) · 1.87 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
42
43
44
45
46
47
48
49
50
51
52
53
54
services:
web-app:
entrypoint: loop_entrypoints.sh
command: infinite_loop.sh
healthcheck:
test: pgrep -f "/bin/sh /usr/local/bin/infinite_loop.sh"
retries: 10
labels:
- traefik.http.services.${APP}.loadbalancer.server.port=${DEV_PORT}
volumes:
- openapigenerator:/openapigenerator
configs:
# These configs allow to run init scripts before running the service.
- source: entrypoints_loop_entrypoints_sh
target: /usr/local/bin/loop_entrypoints.sh
mode: 0555
- source: entrypoints_infinite_loop_sh
target: /usr/local/bin/infinite_loop.sh
mode: 0555
- source: entrypoints_bidirectional_backup_sh
target: /docker-entrypoints/${DEV_BBACKUP:+1}00.sh
mode: 0555
- source: entrypoints_chown_root_sh
target: /docker-entrypoints/00.sh
mode: 0555
- source: entrypoints_add_dev_deps_sh
target: /docker-entrypoints/01.sh
mode: 0555
- source: entrypoints_setup_git_sh
target: /docker-entrypoints/02.sh
mode: 0555
- source: entrypoints_download_sdk_sh
target: /usr/local/bin/download_sdk.sh
mode: 0555
environment:
GITHUB_REPO: ${GITHUB_REPO:-}
WORKDIR: ${WORKDIR:-/home/node/app}
DEV_BBACKUP: ${DEV_BBACKUP:-}
user: root
restart: no
node-app-from-local:
extends: web-app
volumes:
# This prevents git unpushed changes from being lost on container restart
- ${DEV_VOLUME:-${APP}}_dev:${WORKDIR:-/home/node/app}
- ${DEV_BBACKUP:+${PWD}/bbackup/${COMPOSE_PROJECT_NAME}/${DEV_VOLUME:-${APP}}:}/bbackup
# These allow to keep changes from npm install/build from Dockerfile CMDs
- ${WORKDIR:-/home/node/app}/node_modules
node-app-from-remote:
extends: node-app-from-local
image: ''
build:
context: ${GITHUB_REPO:-}
no_cache: true