forked from polyaxon/polyaxon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (80 loc) · 2.3 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
77
78
79
80
81
82
83
84
85
86
87
88
version: "3"
services:
postgres:
image: postgres:9.6-alpine
# volumes:
# - pg_data:/var/lib/postgresql/data
# - pg_backups:/pg_backups
environment:
POSTGRES_USER: "polyaxon"
POSTGRES_PASSWORD: "polyaxon"
networks:
- polyaxon
rabbitmq:
hostname: rabbitmq
image: rabbitmq:3.6.12-management-alpine
networks:
- polyaxon
redis:
image: redis:3.0-alpine
networks:
- polyaxon
web:
build:
context: .
dockerfile: ./Dockerfile
networks:
- polyaxon
depends_on:
- rabbitmq
- postgres
- redis
volumes:
- .:/polyaxon
ports:
- "8000:8000"
- "8001:8001"
- "6006:6006"
- "8888:8888"
- "8000:80"
environment:
DJANGO_SETTINGS_MODULE: polyaxon.settings
MEMCACHE_LOCATION: "memcache:11211"
SETTINGS_ENV_DIR: "dev"
DATABASE_URL: "postgres://polyaxon:polyaxon@postgres:5432/polyaxon"
POLYAXON_AMQP_URL: "rabbitmq:5672"
POLYAXON_REDIS_CELERY_RESULT_BACKEND_URL: "redis://redis:6379/0"
POLYAXON_REDIS_JOB_CONTAINERS_URL: "redis://redis:6379/3"
POLYAXON_REDIS_TO_STREAM_URL: "redis://redis:6379/4"
POLYAXON_REDIS_SESSIONS_URL: "redis://redis:6379/5"
POLYAXON_REDIS_EPHEMERAL_TOKENS_URL: "redis://redis:6379/6"
POLYAXON_REDIS_TTL_URL: "redis://redis:6379/7"
POLYAXON_HEARTBEAT_URL: "redis://redis:6379/8"
POLYAXON_GROUP_CHECKS_URL: "redis://redis:6379/9"
POLYAXON_RABBITMQ_DEFAULT_USER: admin
POLYAXON_RABBITMQ_DEFAULT_PASS: mypass
worker:
build:
context: .
dockerfile: ./DockerfileDev
volumes:
- .:/polyaxon
environment:
POLYAXON_AMQP_URL: "rabbitmq:5672"
POLYAXON_REDIS_CELERY_RESULT_BACKEND_URL: "redis://redis:6379/0"
POLYAXON_REDIS_JOB_CONTAINERS_URL: "redis://redis:6379/3"
POLYAXON_REDIS_TO_STREAM_URL: "redis://redis:6379/4"
POLYAXON_REDIS_SESSIONS_URL: "redis://redis:6379/5"
POLYAXON_REDIS_EPHEMERAL_TOKENS_URL: "redis://redis:6379/6"
POLYAXON_REDIS_TTL_URL: "redis://redis:6379/7"
POLYAXON_HEARTBEAT_URL: "redis://redis:6379/8"
POLYAXON_GROUP_CHECKS_URL: "redis://redis:6379/9"
networks:
- polyaxon
depends_on:
- rabbitmq
#volumes:
# pg_data: {}
# pg_backups: {}
networks:
polyaxon: