-
Notifications
You must be signed in to change notification settings - Fork 52
/
docker-compose.yml
88 lines (83 loc) · 2.74 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:
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
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
- RABBITMQ_HOSTNAME=rabbitmq:5672
# - MEMCACHED_HOST=memcached
## Private Feeds Credentials
- PRO_FEEDS_ACCESS_KEY=AKIAXQII7DGLSDVATJPV
- PRO_FEEDS_SECRET_KEY=AefA4ox7MLSNfihM21FjSA58psmjeccRfT8XT9t/
## ADFS / SSO configuration
# - AUTH_ADFS_ENABLED=true
# - AUTH_ADFS_SERVER=adfs.example.com
# - AUTH_ADFS_CLIENT_ID=42d4943a-4d7d-4b55-924f-b6838affb2df
# - AUTH_ADFS_RELYING_PARTY_ID=08b57015-444f-44b0-a495-6cfe2335a9fa
# - AUTH_ADFS_AUDIENCE=microsoft:identityserver:42d4943a-4d7d-4b55-924f-b6838affb2df
# - AUTH_ADFS_USERNAME_CLAIM=email
## Email Configuration
# - EMAIL_HOST=auth.smtp.1and1.fr
# - EMAIL_HOST_USER=alerts@xx_patrowl_xx.fr
# - EMAIL_HOST_PASSWORD=xx_patrowl_xx
# - EMAIL_PORT=587
# - EMAIL_RCPT_USER=myemail@corp.com
# - DEFAULT_FROM_EMAIL=patrowlhears.notifications@corp.com
- BASE_URL=http://localhost:8080
- HEARS_VALIDATE_EMAIL=true
depends_on:
- db
- rabbitmq
# - memcached
expose:
- "8303"
volumes:
- ./backend_app/staticfiles:/opt/patrowl-hears/backend_app/staticfiles
- ./docker-entrypoint.sh:/opt/patrowl-hears/docker-entrypoint.sh
links:
- db
- rabbitmq
# - memcached
# memcached:
# container_name: patrowlhears-memcached
# image: memcached:latest
# expose:
# - '11211'
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