forked from Supinic/supibot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yaml
More file actions
43 lines (43 loc) · 1008 Bytes
/
docker-compose.example.yaml
File metadata and controls
43 lines (43 loc) · 1008 Bytes
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
name: "supibot"
services:
db:
image: mariadb:11.4
restart: unless-stopped
volumes:
- ./.db:/var/lib/mysql
- type: bind
source: ./db-init.sql
target: /docker-entrypoint-initdb.d/db-init.sql
ports:
- "3333:3306"
environment:
- MARIADB_RANDOM_ROOT_PASSWORD=1
- MARIADB_PASSWORD=supibot
- MARIADB_USER=supibot
redis:
image: redis
restart: unless-stopped
supibot:
build: .
ports:
- "9229:9229"
links:
- db
- redis
depends_on:
- db
- redis
volumes:
- type: bind
source: <path_to_supibot_repository>/config.json
target: /home/project/supibot/config.json
- type: bind
source: <path_to_supibot_repository>/.env
target: /home/project/supibot/.env
restart: unless-stopped
environment:
#- "DEBUG_MODE=1"
- "MARIA_HOST=db"
- "MARIA_USER=supibot"
- "MARIA_PASSWORD=supibot"
- "REDIS_CONFIGURATION=redis"