-
-
Notifications
You must be signed in to change notification settings - Fork 113
/
docker-compose.yml
57 lines (53 loc) · 1.42 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
version: '3'
services:
rabbitmq:
image: rabbitmq:3-alpine
container_name: patrowlmanager-rabbitmq
environment:
- RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbit log_levels [{connection,error}]
expose:
- '5672'
db:
image: postgres:11-alpine
restart: always
container_name: patrowlmanager-postgres
environment:
- POSTGRES_DB=patrowl_db
- POSTGRES_USER=PATROWL_DB_USER
- POSTGRES_PASSWORD=PATROWL_DB_PASSWD_TO_CHANGE
expose:
- '5432'
volumes:
- ./var/db/init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
# - ./pg_data:/var/lib/postgresql/data/
web:
container_name: patrowlmanager-django
build: .
image: patrowl/patrowl-manager-community-edition:${PATROWL_MANAGER_VERSION}
environment:
- POSTGRES_HOST=db
- DEBUG=True
- RABBITMQ_HOSTNAME=rabbitmq:5672
depends_on:
- db
- rabbitmq
expose:
- "8003"
volumes:
- ./staticfiles:/opt/patrowl-manager/staticfiles
- ./media:/opt/patrowl-manager/media
links:
- db
- rabbitmq
nginx:
image: nginx:stable-alpine
container_name: patrowlmanager-nginx
ports:
- "8083:8083"
volumes:
- ./staticfiles:/opt/patrowl-manager/staticfiles
# - ./media:/opt/patrowl-manager/media
- ./var/log:/opt/patrowl-manager/var/log
- ./nginx_docker.conf:/etc/nginx/conf.d/default.conf
depends_on:
- web