forked from parameter1/basecms-website-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (53 loc) · 1.29 KB
/
docker-compose.yml
File metadata and controls
61 lines (53 loc) · 1.29 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
55
56
57
58
59
60
61
version: '3.7'
x-node-defaults: &node
tty: true
init: true
image: node:10.15
entrypoint: ["node"]
working_dir: /root
restart: always
volumes:
- ./:/root:cached
- ./node_modules:/root/node_modules:delegated
- yarn-cache:/.yarn-cache
x-env-defaults: &env
NODE_ENV: development
YARN_CACHE_FOLDER: /.yarn-cache
x-env-tauron: &env-tauron
GRAPHQL_URI: ${GRAPHQL_URI-https://tauron.graphql.base.parameter1.com}
OEMBED_URI: ${OEMBED_URI-https://tauron.oembed.base.parameter1.com}
RSS_URI: ${RSS_URI-https://tauron.rss.base.parameter1.com}
SITEMAPS_URI: ${SITEMAPS_URI-https://tauron.sitemaps.base.parameter1.com}
x-site-command: &site-cmd
entrypoint: ["node_modules/.bin/basecms-website"]
command: ["dev", "index.js"]
volumes:
yarn-cache: {}
services:
terminal:
<<: *node
working_dir: /root
entrypoint: ["/bin/bash"]
environment:
<<: *env
yarn:
<<: *node
working_dir: /root
entrypoint: ["yarn"]
environment:
<<: *env
example.com:
<<: *node
<<: *site-cmd
working_dir: /root
environment:
<<: *env
<<: *env-tauron
PORT: 80
EXPOSED_PORT: 4008
LIVERELOAD_PORT: 14008
TENANT_KEY: p1_sandbox
SITE_ID: 5ed294c6c13a4626008b4568
ports:
- "4008:80"
- "14008:14008"