-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathdocker-compose.yml
85 lines (85 loc) · 2.22 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
77
78
79
80
81
82
83
84
85
# 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
# - ENABLE_QUEUE_SERVICE=true
# - QUEUE_DATABASE_URL=mysql://root:root@mysql:3306/queue
# - DEBUG="prisma*"
command: yarn runner start
depends_on:
redis:
condition: service_started
# mysql:
# condition: service_healthy
redis:
image: "redis:alpine"
command: redis-server --requirepass 123abc
ports:
- "6379:6379"
# submitter:
# image: digital-form-builder-submitter
# build:
# context: .
# dockerfile: ./submitter/Dockerfile
# ports:
# - "9000:9000"
# environment:
# - PORT=9000
# - QUEUE_DATABASE_URL=mysql://root:root@mysql:3306/queue
# - QUEUE_POLLING_INTERVAL=5000
# - DEBUG="prisma*"
# command: yarn submitter start
# depends_on:
# mysql:
# condition: service_healthy
mysql:
container_name: mysql
image: "mysql:latest"
command: --default-authentication-plugin=mysql_native_password
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: queue
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 10