-
Notifications
You must be signed in to change notification settings - Fork 103
/
docker-compose.yml
63 lines (57 loc) · 1.33 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
59
60
61
62
63
# Local developer docker-compose.
#
# IMPORTANT: If you commit changes to this file, please remember to
# make the appropriate changes to `docs/source/docker-compose.example.yml`
# as well.
version: '3'
services:
kegbot:
image: kegbot-server
restart: unless-stopped
command: run_server
build: .
ports:
- "8000:8000"
volumes:
- kegbot-data:/kegbot-data
tmpfs:
- /tmp
- /var/tmp
environment:
REDIS_URL: redis://redis:6379/0
DATABASE_URL: mysql://kegbot_dev:changeme@mysql/kegbot_dev
KEGBOT_ENV: "debug"
KEGBOT_SECRET_KEY: "changeme"
workers:
image: kegbot-server
restart: unless-stopped
command: run_workers
volumes:
- kegbot-data:/kegbot-data
tmpfs:
- /tmp
- /var/tmp
environment:
REDIS_URL: redis://redis:6379/0
DATABASE_URL: mysql://kegbot_dev:changeme@mysql/kegbot_dev
KEGBOT_DEBUG: "true"
KEGBOT_SECRET_KEY: "changeme"
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: