forked from pacifica/pacifica-dispatcher-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (37 loc) · 860 Bytes
/
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
version: '3.3'
services:
frontend:
build:
context: .
dockerfile: Dockerfile.uwsgi
links:
- rabbit
- mysql
ports:
- 8069:8069
environment:
BROKER_URL: pyamqp://guest:guest@rabbit:5672/
DATABASE_URL: mysql://example:example@127.0.0.1:3306/pacifica_dispatcher_example
backend:
build:
context: .
dockerfile: Dockerfile.celery
links:
- rabbit
- mysql
environment:
BROKER_URL: pyamqp://guest:guest@rabbit:5672/
DATABASE_URL: mysql://example:example@127.0.0.1:3306/pacifica_dispatcher_example
mysql:
image: mysql:5
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: pacifica_dispatcher_example
MYSQL_USER: example
MYSQL_PASSWORD: example
ports:
- 3306:3306
rabbit:
image: rabbitmq
ports:
- 5672:5672