forked from XGovFormBuilder/digital-form-builder
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
50 lines (50 loc) · 1.21 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
# This file only contains base configuration needed for CI build and test
# For local development environment please see docker-compose.dev.yml
version: "3.9"
services:
designer:
container_name: designer
image: digital-form-builder-designer
build:
context: .
dockerfile: ./designer/Dockerfile
ports:
- "3000:3000"
environment:
- CHOKIDAR_USEPOLLING=true
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=123abc
- sandbox=true
- PREVIEW_URL=http://localhost:3009
- PUBLISH_URL=http://runner:3009
- LAST_COMMIT
- LAST_TAG
command: yarn designer start
depends_on:
- runner
runner:
container_name: runner
image: digital-form-builder-runner
build:
context: .
dockerfile: ./runner/Dockerfile
ports:
- "3009:3009"
environment:
- CHOKIDAR_USEPOLLING=true
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=123abc
- sandbox=true
- PREVIEW_MODE=true
- LAST_COMMIT
- LAST_TAG
command: yarn runner start
depends_on:
- redis
redis:
image: "redis:alpine"
command: redis-server --requirepass 123abc
ports:
- "6379:6379"