-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
76 lines (66 loc) · 1.49 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
75
76
version: '3.7'
x-node-defaults: &node
tty: true
init: true
image: node:14.21
entrypoint: ["node"]
working_dir: /root
restart: always
volumes:
- ./:/root:cached
- ./node_modules:/root/node_modules:delegated
- yarn-cache:/.yarn-cache
x-newsletter-command: &newsletter-cmd
<<: *node
entrypoint: ["yarn"]
command: ["dev"]
x-env-defaults: &env
YARN_CACHE_FOLDER: /.yarn-cache
NODE_ENV: development
NEW_RELIC_ENABLED: ${NEW_RELIC_ENABLED-0}
NEW_RELIC_LICENSE_KEY: ${NEW_RELIC_LICENSE_KEY-(unset)}
x-env-leonis: &env-leonis
<<: *env
GRAPHQL_URI: ${GRAPHQL_URI-https://leonis.graphql.base.parameter1.com}
x-env-tauron: &env-tauron
<<: *env
GRAPHQL_URI: ${GRAPHQL_URI-https://tauron.graphql.base.parameter1.com}
services:
terminal:
<<: *node
working_dir: /root
entrypoint: ["/bin/bash"]
environment:
<<: *env
yarn:
<<: *node
working_dir: /root
entrypoint: ["yarn"]
environment:
<<: *env
all:
<<: *newsletter-cmd
working_dir: /root/tenants/all
environment:
<<: *env-tauron
PORT: 80
EXPOSED_PORT: 22095
LIVERELOAD_PORT: 32095
TENANT_KEY: pmmi_all
ports:
- "22095:80"
- "32095:32095"
mundo:
<<: *newsletter-cmd
working_dir: /root/tenants/mundo
environment:
<<: *env-tauron
PORT: 80
EXPOSED_PORT: 22096
LIVERELOAD_PORT: 32096
TENANT_KEY: pmmi_mundo
ports:
- "22096:80"
- "32096:32096"
volumes:
yarn-cache: {}