-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·71 lines (65 loc) · 1.7 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
version: "3.3"
services:
server:
build:
context: ./
dockerfile: ./server/Dockerfile
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./server:/server
ports:
- "8000:8000"
depends_on:
- db
- rabbitmq
- celery
environment:
DEBUG: "True"
DATABASE_URL: "postgres://postgres:postgres@db:5432/postgres"
BROKER_URL: "amqp://user:password@rabbitmq:5672/my_vhost"
REDIS_URL: "redis://redis:6379/0"
CORS_ALLOWED_ORIGINS: ""
db:
image: postgres:12.4-alpine
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
rabbitmq:
image: rabbitmq:3.8.8-alpine
environment:
RABBITMQ_DEFAULT_USER: "user"
RABBITMQ_DEFAULT_PASS: "password"
RABBITMQ_DEFAULT_VHOST: "my_vhost"
celery:
build:
context: ./
dockerfile: ./server/Dockerfile
command: celery -A config worker -B -l info -Q default,celery -s /var/run/celerybeat-schedule
volumes:
- ./server:/server
depends_on:
- db
- rabbitmq
environment:
DEBUG: "True"
DATABASE_URL: "postgres://postgres:postgres@db:5432/postgres"
BROKER_URL: "amqp://user:password@rabbitmq:5672/my_vhost"
REDIS_URL: "redis://redis:6379/0"
alexandria:
image: raisultan/alexandria:0.1
volumes:
- ./docs/ws.yml:/ws.yml
ports:
- 5050:8080
environment:
ALEXANDRIA_YAML: /ws.yml
swagger-editor:
image: swaggerapi/swagger-editor
container_name: "swagger-editor"
ports:
- "80:8080"
redis:
image: redis:6
ports:
- "6379:6379"