forked from Kegbot/kegbot-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.16 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
version: '3'
services:
kegbot:
image: kegbot-server
restart: unless-stopped
build: .
ports:
- "8000:8000"
volumes:
- kegbot-data:/kegbot-data
tmpfs:
- /tmp
- /var/tmp
environment:
KEGBOT_REDIS_URL: redis://redis:6379/0
KEGBOT_DATABASE_URL: mysql://kegbot_dev:changeme@mysql/kegbot_dev
KEGBOT_SETUP_ENABLED: "true"
KEGBOT_DEBUG: "true"
workers:
image: kegbot-server
restart: unless-stopped
command: bin/kegbot run_workers
volumes:
- kegbot-data:/kegbot-data
tmpfs:
- /tmp
- /var/tmp
environment:
KEGBOT_REDIS_URL: redis://redis:6379/0
KEGBOT_DATABASE_URL: mysql://kegbot_dev:changeme@mysql/kegbot_dev
KEGBOT_SETUP_ENABLED: "true"
KEGBOT_DEBUG: "true"
mysql:
image: mysql:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: 'changeme'
MYSQL_USER: 'kegbot_dev'
MYSQL_PASSWORD: 'changeme'
MYSQL_DATABASE: 'kegbot_dev'
tmpfs:
- /tmp
- /var/tmp
volumes:
- mysql-data:/var/lib/mysql
redis:
image: redis:latest
restart: always
volumes:
mysql-data:
kegbot-data: