-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yml
executable file
·63 lines (60 loc) · 1.62 KB
/
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
version: "3"
services:
app:
build:
context: .
dockerfile: ./Dockerfile
container_name: knoq_app
environment:
TZ: Asia/Tokyo
MARIADB_USERNAME: root
MARIADB_PASSWORD: password
MARIADB_HOSTNAME: db
MARIADB_DATABASE: knoQ
ORIGIN: http://localhost:3000
SESSION_KEY: ${SESSION_KEY:-random32wordsXXXXXXXXXXXXXXXXXXX}
TRAQ_CALENDARID: ${TRAQ_CALENDARID}
CLIENT_ID: ${CLIENT_ID:-d1hDlIRNfCBerXdZkH1VR8lJwCBpIuMgiv42}
WEBHOOK_ID: ${WEBHOOK_ID}
WEBHOOK_SECRET: ${WEBHOOK_SECRET}
CHANNEL_ID: ${CHANNEL_ID}
DAILY_CHANNEL_ID: ${DAILY_CHANNEL_ID}
ACTIVITY_CHANNEL_ID: ${ACTIVITY_CHANNEL_ID}
TOKEN_KEY: ${TOKEN_KEY:-random32wordsXXXXXXXXXXXXXXXXXXX}
KNOQ_VERSION: ${KNOQ_VERSION:-dev}
DEVELOPMENT: true
GORM_LOG_LEVEL: info
TRAQ_ACCESS_TOKEN:
ports:
- "${APP_PORT:-3000}:3000"
depends_on:
db:
condition: service_healthy
develop:
watch:
- action: rebuild
path: ./
db:
image: mariadb:10.6.4
container_name: knoq_db
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: knoQ
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci
volumes:
- "./_development/mariadb:/var/lib/mysql"
expose:
- "3306"
healthcheck:
test: mysql --user=root --password=password --execute "SHOW DATABASES;"
interval: 1s
timeout: 10s
retries: 60
adminer:
image: adminer
container_name: knoq_adminer
ports:
- "8000:8080"
depends_on:
db:
condition: service_healthy