forked from Patrowl/PatrowlHears
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (62 loc) · 1.93 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
version: '3'
services:
rabbitmq:
image: rabbitmq:3-alpine
container_name: patrowlhears-rabbitmq
environment:
- RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbit log_levels [{connection,error}]
expose:
- '5672'
db:
image: postgres:11-alpine
restart: always
container_name: patrowlhears-postgres
environment:
- POSTGRES_DB=patrowlhears_db
- POSTGRES_USER=patrowlhears
- POSTGRES_PASSWORD=patrowlhears_pw
expose:
- '5432'
volumes:
- ./backend_app/var/db/init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
- ./backend_app/var/db:/mnt
# - ./pg_data:/var/lib/postgresql/data/
patrowlhears:
container_name: patrowlhears-django
build: .
image: patrowl/patrowl-hears-community-edition:${PATROWL_HEARS_VERSION}
environment:
- DEBUG=False
- POSTGRES_HOST=db
- POSTGRES_USER=patrowlhears
- POSTGRES_PASSWORD=patrowlhears_pw
- RABBITMQ_HOSTNAME=rabbitmq:5672
# - EMAIL_HOST=auth.smtp.1and1.fr
# - EMAIL_HOST_USER=alerts@xx_patrowl_xx.fr
# - EMAIL_HOST_PASSWORD=xx_patrowl_xx
# - EMAIL_PORT=587
depends_on:
- db
- rabbitmq
expose:
- "8303"
volumes:
- ./backend_app/staticfiles:/opt/patrowl-hears/backend_app/staticfiles
- ./docker-entrypoint.sh:/opt/patrowl-hears/docker-entrypoint.sh
links:
- db
- rabbitmq
nginx:
image: nginx:latest
container_name: patrowlhears-nginx
ports:
- "8383:8383"
volumes:
- ./backend_app/staticfiles:/opt/patrowl-hears/backend_app/staticfiles
- ./backend_app/media:/opt/patrowl-hears/backend_app/media
- ./backend_app/var/log:/opt/patrowl-hears/backend_app/var/log
- ./backend_app/var/docker/nginx_docker.conf:/etc/nginx/conf.d/default.conf
depends_on:
- patrowlhears