-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
62 lines (58 loc) · 1.87 KB
/
compose.yaml
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
version: "3"
networks:
default:
services:
mysql:
image: mariadb:10
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-pass}
MYSQL_USER: ${MYSQL_USER?Variable MYSQL_USER not set}
MYSQL_PASSWORD: ${MYSQL_PASSWORD?Variable MYSQL_PASSWORD not set}
MYSQL_DATABASE: ${MYSQL_DATABASE?Variable MYSQL_DATABASE not set}
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
expose:
- 3306
healthcheck:
test: mysqladmin ping -h localhost -u root -ppass
interval: 1s
timeout: 10s
retries: 60
ports:
- "3306:3306"
networks:
- default
adminer:
image: adminer
environment:
ADMINER_DEFAULT_SERVER: mysql
ports:
- "8080:8080"
networks:
- default
depends_on:
mysql:
condition: service_healthy
app:
build: .
image: h23w_01-backend
environment:
BOT_ACCESS_TOKEN: ${BOT_ACCESS_TOKEN?Variable BOT_ACCESS_TOKEN not set}
VERIFICATION_TOKEN: ${VERIFICATION_TOKEN?Variable VERIFICATION_TOKEN not set}
ALLOWED_ORIGINS: ${ALLOWED_ORIGINS?Variable ALLOWED_ORIGINS not set}
CHECK_AUTH: ${CHECK_AUTH?Variable CHECK_AUTH not set}
MYSQL_USER: ${MYSQL_USER?Variable MYSQL_USER not set}
MYSQL_PASSWORD: ${MYSQL_PASSWORD?Variable MYSQL_PASSWORD not set}
MYSQL_HOSTNAME: mysql
MYSQL_PORT: 3306
MYSQL_DATABASE: ${MYSQL_DATABASE?Variable MYSQL_DATABASE not set}
MIGRATION: ${MIGRATION:-none}
R2_ACCOUNT_ID: ${R2_ACCOUNT_ID?Variable R2_ACCOUNT_ID not set}
R2_ACCESS_KEY: ${R2_ACCESS_KEY?Variable R2_ACCESS_KEY not set}
R2_SECRET_KEY: ${R2_SECRET_KEY?Variable R2_SECRET_KEY not set}
R2_BUCKET_NAME: ${R2_BUCKET_NAME?Variable R2_BUCKET_NAME not set}
depends_on:
mysql:
condition: service_healthy
ports:
- "8000:8000"