-
Notifications
You must be signed in to change notification settings - Fork 172
/
docker-compose.yml
49 lines (49 loc) · 1.08 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
version: '3'
services:
db:
image: mysql
restart: always
environment:
MYSQL_DATABASE: 'test'
MYSQL_USER: 'root'
MYSQL_PASSWORD: ''
MYSQL_ROOT_PASSWORD: ''
MYSQL_ALLOW_EMPTY_PASSWORD: 'true'
ports:
- '3306:3306'
volumes:
- my-datavolume:/var/lib/mysql
networks:
- app-network
redis:
image: redis:alpine
networks:
- app-network
memcached:
image: memcached:1.5-alpine
networks:
- app-network
web:
networks:
- app-network
image: dongweiming/lyanna:latest
ports:
- '8000:8000'
volumes:
- .:/app
depends_on:
- db
- redis
- memcached
environment:
DEBUG: 1
REDIS_URL: 'redis://redis:6379'
MEMCACHED_HOST: 'memcached'
DB_URL: 'mysql://root:@db:3306/test?charset=utf8'
PYTHONPATH: $PYTHONPATH:/usr/local/src/aiomcache:/usr/local/src/aiomysql:/usr/local/src/tortoise:/usr/local/src/arq:/usr/local/src
command: sh -c './setup.sh && python app.py'
volumes:
my-datavolume:
networks:
app-network:
driver: bridge