forked from alchemy-fr/Phraseanet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.tools.yml
141 lines (131 loc) · 3.48 KB
/
docker-compose.tools.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
131
132
133
134
135
136
137
138
139
140
141
version: "3.9"
services:
mailhog:
image: mailhog/mailhog
profiles: ["dev", "mailhog"]
ports:
- ${MAILHOG_GUI_PORT}:8025
environment:
- MAILHOG_GUI_PORT
networks:
- internal
ftpd-server:
image: stilliard/pure-ftpd:hardened
profiles: ["ftp-server"]
environment:
FTP_USER_NAME: "dev"
FTP_USER_PASS: "dev"
FTP_USER_HOME: "/home/dev"
volumes:
- ${PHRASEANET_FTP_DIR}:/home/dev
restart: on-failure
networks:
- internal
phpmyadmin:
image: phpmyadmin/phpmyadmin
profiles: ["dev", "pma"]
restart: on-failure
ports:
- ${PHRASEANET_PHPMYADMIN_PORT}:80
depends_on:
- db
networks:
- internal
kibana:
image: kibana:4.6.6
profiles: ["elk"]
ports:
- 5601:5601
links:
- elasticsearch
depends_on:
- elasticsearch
networks:
- internal
logstash:
image: logstash:7.6.2
profiles: ["elk"]
links:
- elasticsearch
volumes:
- ${PHRASEANET_CONFIG_DIR}:/var/alchemy/Phraseanet/config:rw
command: logstash -f /var/alchemy/Phraseanet/config/logstash.conf
depends_on:
- elasticsearch
restart: on-failure
networks:
- internal
filebeat:
hostname: filebeat
image: "docker.elastic.co/beats/filebeat:7.6.2"
profiles: ["elk"]
volumes:
- ${PHRASEANET_CONFIG_DIR}/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro
- ${PHRASEANET_LOGS_DIR}:/var/alchemy/Phraseanet/logs:ro
command: filebeat run -e --strict.perms=false
restart: on-failure
networks:
- internal
db-backup:
image: fradelg/mysql-cron-backup
profiles: ["db-backup"]
depends_on:
- db
volumes:
- ${DB_BACKUP_VOLUME_PATH}/backup:/backup
networks:
- internal
environment:
- MYSQL_HOST=${DB_BACKUP_MYSQL_HOST}
- MYSQL_USER=${DB_BACKUP_MYSQL_USER}
- MYSQL_PASS=${MYSQL_ROOT_PASSWORD}
- MAX_BACKUPS=${DB_BACKUP_MAX_BACKUPS}
- INIT_BACKUP=${DB_BACKUP_INIT_BACKUP}
- INIT_RESTORE_LATEST=${DB_BACKUP_INIT_RESTORE_LATEST}
- CRON_TIME=${DB_BACKUP_CRON_TIME}
- GZIP_LEVEL=${DB_BACKUP_GZIP_LEVEL}
restart: unless-stopped
phraseanet-saml-sp:
build:
context: .
target: phraseanet-saml-sp
args:
- SSH_PRIVATE_KEY=${PHRASEANET_SSH_PRIVATE_KEY}
- PHRASEANET_PLUGINS=${PHRASEANET_PLUGINS}
image: $PHRASEANET_DOCKER_REGISTRY/phraseanet-saml-sp:$PHRASEANET_DOCKER_TAG
profiles: ["phraseanet-saml-sp"]
restart: on-failure
volumes:
- ${SAML_IDP_METADATA_LOCAL_CONFIG_DIR}:/var/www/simplesamlphp-1.10.0/metadata:rw
- ${SAML_SP_CONFIG_DIR}:/var/www/simplesamlphp-1.10.0/config:rw
- ${SAML_SP_CERT_DIR}:/var/www/simplesamlphp-1.10.0/cert:rw
depends_on:
- phraseanet
environment:
- MAX_BODY_SIZE
- GATEWAY_SEND_TIMEOUT
- GATEWAY_PROXY_TIMEOUT
- GATEWAY_FASTCGI_TIMEOUT
- SESSION_SAVE_HANDLER
- SESSION_SAVE_PATH
- SAML_PHRASEANET_HOST
- SAML_SP_AUTHSOURCES
- SAML_IDP_METADATA_CONFIG
- SAML_IDP_METADATA_LOCAL_CONFIG_DIR
- SAML_ALLOW_DEBUG
ports:
- 8080:8080
networks:
- internal
#squid:
# image: sameersbn/squid:3.5.27-2
# profiles: ["squid"]
# ports:
# - ${PHRASEANET_SQUID_PORT}:3128
# volumes:
# - ${PHRASEANET_SQUID_DIR}:/var/spool/squid
# - ${PHRASEANET_SQUID_CONF}:/etc/squid/squid.conf
# - ${PHRASEANET_LOGS_DIR}/squid:/var/log/squid
# restart: always
# networks:
# - internal