forked from traPtitech/traQ
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (76 loc) · 1.87 KB
/
docker-compose.yml
File metadata and controls
82 lines (76 loc) · 1.87 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '3'
services:
backend:
build: ./
restart: always
environment:
TRAQ_ORIGIN: http://localhost:3000
TRAQ_MARIADB_HOST: mysql
TRAQ_ES_URL: http://es:9200
TRAQ_PPROF: "true"
entrypoint: dockerize -timeout 60s -wait tcp://mysql:3306 -wait tcp://es:9200
command: ./traQ serve --dev --skip-init-emojis
expose:
- "80"
- "6060"
ports:
- "6060:6060"
depends_on:
- mysql
- es
volumes:
- ./dev/data/app:/app/storage
frontend:
image: caddy:latest
restart: always
expose:
- "80"
ports:
- "3000:80"
depends_on:
- backend
volumes:
- ./dev/Caddyfile:/etc/caddy/Caddyfile:ro
- ./dev/frontend:/usr/share/caddy:ro
mysql:
image: mariadb:10.0.19
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: traq
# conohaのDBのデフォルトCharsetはutf8
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci
expose:
- "3306"
ports:
- "3002:3306"
volumes:
- ./dev/data/mysql:/var/lib/mysql
es:
image: ghcr.io/traptitech/es-with-sudachi:7.10.2-2.1.1-SNAPSHOT
restart: always
environment:
- discovery.type=single-node
ports:
- "9200:9200"
- "9300:9300"
volumes:
- ./dev/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./dev/es_jvm.options:/usr/share/elasticsearch/config/jvm.options.d/es_jvm.options
- ./dev/data/es:/usr/share/elasticsearch/data
adminer:
image: adminer:4.7.5
restart: always
environment:
ADMINER_DEFAULT_SERVER: mysql
ADMINER_DESIGN: nette
expose:
- "8080"
ports:
- "3001:8080"
botdebugger:
image: golang:alpine
restart: always
volumes:
- ./dev/bin:/app
command: go run /app/bot_debugger.go -p 80