-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (57 loc) · 1.49 KB
/
docker-compose.yml
File metadata and controls
61 lines (57 loc) · 1.49 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
# IMPORTANT: Run docker compose from THIS directory (git-cms/).
# Build context is this repository only; no sibling repos required.
services:
app:
build:
context: .
dockerfile: Dockerfile
target: dev
volumes:
- .:/app
- /app/node_modules
ports:
- "${APP_PORT:-4638}:4638"
environment:
- PORT=4638
- GIT_CMS_ENV=dev
- GIT_CMS_REPO=/app
- GIT_AUTHOR_NAME=Git CMS Dev
- GIT_AUTHOR_EMAIL=dev@git-cms.local
- GIT_COMMITTER_NAME=Git CMS Dev
- GIT_COMMITTER_EMAIL=dev@git-cms.local
command: npm run serve
playground:
build:
context: .
dockerfile: Dockerfile
target: dev
ports:
- "${PLAYGROUND_PORT:-4638}:4638"
volumes:
- git-cms-playground-repo:/data/repo
environment:
- PORT=4638
- GIT_CMS_ENV=dev
- GIT_CMS_REPO=/data/repo
- GIT_AUTHOR_NAME=Git CMS Playground
- GIT_AUTHOR_EMAIL=playground@git-cms.local
- GIT_COMMITTER_NAME=Git CMS Playground
- GIT_COMMITTER_EMAIL=playground@git-cms.local
command: ./scripts/start-playground.sh
test:
build:
context: .
dockerfile: Dockerfile
target: test
volumes:
- .:/app
- /app/node_modules
environment:
- CI=true
- GIT_AUTHOR_NAME=Git CMS Bot
- GIT_AUTHOR_EMAIL=bot@git-cms.local
- GIT_COMMITTER_NAME=Git CMS Bot
- GIT_COMMITTER_EMAIL=bot@git-cms.local
command: npm run test:local
volumes:
git-cms-playground-repo: