forked from WoltLab/node-haproxy-peers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (70 loc) · 1.61 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: "3.9"
services:
proxy:
build:
args:
- USER
context: ./test-proxy
hostname: test-proxy
init: true
ports:
# Non-ssl port
- 8100:8100
- 8101:8101
- 8102:8102
- 8103:8103
volumes:
- /home/${USER}/.cache/yarn:/home/${USER}/.cache/yarn
- ${PWD}/../haproxy-2.5.0/haproxy:/usr/local/sbin/haproxy
- ${PWD}/test-proxy/etc:/usr/local/etc/haproxy
- ${PWD}/test-proxy/package.json:/app/package.json
- ${PWD}/test-proxy/yarn.lock:/app/yarn.lock
demo:
build:
args:
- NODE_ENV
- NPM_TOKEN
- UID
- USER
context: .
target: development
environment:
DEBUG: haproxy-peers:*
init: true
#ports:
# - 8200:8200
volumes:
# Use the host's yarn cache otherwise each time you run yarn inside a
# fresh container, it'll download all packages to the cache inside the
# container. $USER is set by the shell and exported explicitly so it'll
# just work here.
- /home/${USER}/.cache/yarn:/home/${USER}/.cache/yarn
- ${PWD}/dist:/app/dist
- ${PWD}/package.json:/app/package.json
- ${PWD}/yarn.lock:/app/yarn.lock
test_watch:
build:
args:
- UID
- USER
context: .
target: test_watch
volumes:
- ${PWD}:/app
tsc_watch:
build:
args:
- UID
- USER
context: .
target: tsc_watch
init: true
volumes:
- ${PWD}:/app
# web:
# image: nginx
# ports:
# - 8300:80
# #init: true
# volumes:
# - ${PWD}/web:/usr/share/nginx/html:ro