-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (76 loc) · 1.4 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
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3.9'
services:
web:
build: .
command: ./wait-for-it.sh mysql:3306 -- ./docker-entrypoint.sh
ports:
- 8000:8000
depends_on:
- redis
- mysql
restart: on-failure
volumes:
- .:/app
mysql:
image: mysql:8.0
ports:
- 3306:3306
restart: always
environment:
- MYSQL_DATABASE=storefront3
- MYSQL_ROOT_PASSWORD=MyPassword
volumes:
- mysqldata:/var/lib/mysql
redis:
image: redis:6.2-alpine
ports:
- 6379:6379
restart: always
volumes:
- redisdata:/data
smtp4dev:
image: rnwood/smtp4dev:v3
ports:
- 5000:80
- 25:25
restart: always
celery:
build: .
command: celery -A storefront worker --loglevel=info
depends_on:
- redis
volumes:
- .:/app
celery-beat:
build: .
command: celery -A storefront beat --loglevel=info
depends_on:
- redis
volumes:
- .:/app
flower:
build: .
command: celery -A storefront flower
depends_on:
- web
- redis
- celery
environment:
- DEBUG=1
- CELERY_BROKER=redis://redis:6379/0
- CELERY_BACKEND=redis://redis:6379/0
ports:
- 5555:5555
tests:
build: .
command: ./wait-for-it.sh mysql:3306 -- ptw
depends_on:
- redis
- mysql
tty: true
volumes:
- .:/app
volumes:
mysqldata:
pgdata:
redisdata: