-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 928 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 928 Bytes
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
# 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:
- "4638:4638"
environment:
- PORT=4638
- GIT_CMS_ENV=dev
- 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
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