-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (57 loc) · 1.37 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
# Use root/example as user/password credentials
services:
db:
image: mariadb:11.4.2
restart: unless-stopped
volumes:
- "${MARIADB_DATA_DIR}:/var/lib/mysql"
- "${MARIADB_CONFIG_DIR}:/etc/mysql/conf.d"
environment:
- MARIADB_USER=cotbot
- MARIADB_PASSWORD=localhost-password
- MARIADB_LOCALHOST_USER=1
- MARIADB_RANDOM_ROOT_PASSWORD=1
- MARIADB_DATABASE=cotbot
- MARIADB_MYSQL_LOCALHOST_USER=true
ports:
- '3306:3306'
healthcheck:
test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
redis:
image: redis:7.2.5
restart: unless-stopped
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
start_period: 5s
interval: 3s
timeout: 2s
retries: 3
ports:
- '6379:6379'
nodestone:
image: nodestone
restart: unless-stopped
ports:
- '8080:8080'
# cotbot:
# build:
# context: .
# dockerfile: Dockerfile
# restart: no
# links:
# - db
# - redis
# environment:
# - BOT_CLIENT_SECRET=${BOT_CLIENT_SECRET}
# - BOT_CLIENT_ID=${BOT_CLIENT_ID}
# depends_on:
# db:
# condition: service_healthy
# redis:
# condition: service_healthy
# nodestone:
# condition: service_started