forked from webvirtcloud/webvirtbackend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
130 lines (129 loc) · 3.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
version: 3.7"
services:
backend:
build:
context: .
dockerfile: Dockerfile
image: webvirtbackend:dev
container_name: webvirtcloud-dev-backend
hostname: backend
ports:
- 8000:8000
volumes:
- .:/app
command: python3 manage.py runserver 0:8000
environment:
DB_HOST: mariadb
DB_PORT: 3306
DB_NAME: webvirtcloud
DB_USER: django
DB_PASSWORD: django
PYTHONOPTIMIZE: 1
ANSIBLE_HOST_KEY_CHECKING: 0
ANSIBLE_PARAMIKO_LOOK_FOR_KEYS: 0
DJANGO_SETTINGS_MODULE: webvirtcloud.settings.develop
CELERY_BROKER_URL: "amqp://guest:guest@rabbitmq:5672"
depends_on:
- mariadb
novnc:
build:
context: .
dockerfile: Dockerfile
hostname: novnc
image: webvirtbackend:dev
container_name: webvirtcloud-dev-novnc
ports:
- 127.0.0.1:6080:6080
volumes:
- .:/app
command: python3 manage.py novncd --verbose
environment:
DB_HOST: mariadb
DB_PORT: 3306
DB_NAME: webvirtcloud
DB_USER: django
DB_PASSWORD: django
DJANGO_SETTINGS_MODULE: webvirtcloud.settings.develop
depends_on:
- mariadb
worker:
build:
context: .
dockerfile: Dockerfile
image: webvirtbackend:dev
container_name: webvirtcloud-dev-worker
hostname: worker
volumes:
- .:/app
command: celery -A webvirtcloud worker -l info
environment:
DB_HOST: mariadb
DB_PORT: 3306
DB_NAME: webvirtcloud
DB_USER: django
DB_PASSWORD: django
PYTHONOPTIMIZE: 1
ANSIBLE_HOST_KEY_CHECKING: 0
ANSIBLE_PARAMIKO_LOOK_FOR_KEYS: 0
DJANGO_SETTINGS_MODULE: webvirtcloud.settings.develop
CELERY_BROKER_URL: "amqp://guest:guest@rabbitmq:5672"
depends_on:
- mariadb
- rabbitmq
scheduler:
build:
context: .
dockerfile: Dockerfile
image: webvirtbackend:dev
container_name: webvirtcloud-dev-scheduler
hostname: scheduler
volumes:
- .:/app
command: celery -A webvirtcloud beat -l info
environment:
DB_HOST: mariadb
DB_PORT: 3306
DB_NAME: webvirtcloud
DB_USER: django
DB_PASSWORD: django
ANSIBLE_HOST_KEY_CHECKING: 0
ANSIBLE_PARAMIKO_LOOK_FOR_KEYS: 0
DJANGO_SETTINGS_MODULE: webvirtcloud.settings.develop
CELERY_BROKER_URL: "amqp://guest:guest@rabbitmq:5672"
depends_on:
- worker
- mariadb
- rabbitmq
mariadb:
image: mariadb:10.6.10
container_name: webvirtcloud-dev-mariadb
hostname: mariadb
volumes:
- ./.mysql:/var/lib/mysql
ports:
- 127.0.0.1:3306:3306
environment:
MARIADB_DATABASE: webvirtcloud
MARIADB_USER: django
MARIADB_PASSWORD: django
MARIADB_ROOT_PASSWORD: root
rabbitmq:
image: rabbitmq:3.10.13
container_name: webvirtcloud-dev-rabbitmq
hostname: rabbitmq
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
cloudinit-proxy:
image: haproxy:lts
container_name: webvirtcloud-dev-cloudinit-proxy
hostname: cloudinit-proxy
volumes:
- ./.devcontainer/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
network_mode: host
mailhog:
image: mailhog/mailhog
container_name: webvirtcloud-dev-mailhog
hostname: mailhog
ports:
- 127.0.0.1:8025:8025