postal/docker-compose.yml

147 lines
3.6 KiB
YAML
Raw Normal View History

2017-04-26 22:35:49 +02:00
version: "3"
services:
nginx:
image: nginx:mainline-alpine
links:
- service
depends_on:
- service
volumes:
- ./src/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- static_assets:/opt/postal/public:ro
- assets:/opt/postal/public/assets:ro
networks:
default: {aliases: [ postal_nginx, nginx ]}
http:
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "--fail", "http://127.0.0.1" ]
interval: 15s
timeout: 10s
retries: 3
service:
2021-04-22 06:27:33 +02:00
image: catdeployed/postal:alpine
build:
context: .
2017-05-06 04:31:47 +02:00
command: run
depends_on:
- systemdb
- messagedb
- queue
- clamav
2017-04-27 10:38:29 +02:00
volumes:
- storage:/storage
- static_assets:/opt/postal/public
- assets:/opt/postal/public/assets
2018-06-16 21:18:38 +02:00
- ./src/templates/:/templates
2017-04-27 09:50:07 +02:00
environment:
- CLAMAV_HOST=clamav
- CLAMAV_PORT=3310
- SYSTEMDB_HOST=systemdb
- SYSTEMDB_DATABASE=postal
- SYSTEMDB_USER=root
- SYSTEMDB_PASSWORD=SQtDHUD7spitQQvoQ^2vSCTZBg5nX^
- MESSAGEDB_HOST=messagedb
- MESSAGEDB_DATABASE=messages
- MESSAGEDB_USER=root
- MESSAGEDB_PASSWORD=SQtDHUD7spitQQvoQ^2vSCTZBg5nX^
2017-04-27 10:29:03 +02:00
- RABBITMQ_DEFAULT_USER=postal
- RABBITMQ_DEFAULT_PASS=changeme
- RABBITMQ_DEFAULT_VHOST=postal
2020-04-17 06:14:17 +02:00
- POSTAL_FNAME=Sia
- POSTAL_LNAME=Cat
- POSTAL_PASSWORD=hDzqLsP5hEXuBinpQ3KHSknvgTxRu6
- POSTAL_EMAIL=aleksandar@puharic.com
networks:
default: { aliases: [ postal, service ] }
client: { aliases: [ postal, mailer, mailer-service ] }
2020-04-17 06:14:17 +02:00
healthcheck:
test: curl -sS http://127.0.0.1:5000 || exit 1
interval: 5s
timeout: 10s
retries: 3
restart: unless-stopped
systemdb:
image: nlss/mariadb
volumes:
- systemdb_data:/var/lib/mysql
- systemdb_backup:/var/lib/backup
- systemdb_log:/var/log/mysql
environment:
- MARIADB_ROOT_PASSWORD=SQtDHUD7spitQQvoQ^2vSCTZBg5nX^
- MARIADB_DATABASE=postal
networks:
default: { aliases: [ postal_mysql, mysql, mariadb, database ] }
restart: unless-stopped
healthcheck:
test: [ "CMD", "/usr/bin/healthcheck" ]
interval: 30s
timeout: 20s
retries: 3
messagedb:
image: nlss/mariadb
2017-04-27 11:36:31 +02:00
volumes:
- messagedb_data:/var/lib/mysql
- messagedb_backup:/var/lib/backup
- messagedb_log:/var/log/mysql
2017-04-27 09:50:07 +02:00
environment:
- MARIADB_ROOT_PASSWORD=SQtDHUD7spitQQvoQ^2vSCTZBg5nX^
- MARIADB_DATABASE=messages
networks:
default: { aliases: [ postal_mysql, mysql, mariadb, database ] }
restart: unless-stopped
healthcheck:
test: [ "CMD", "/usr/bin/healthcheck" ]
interval: 30s
timeout: 20s
retries: 3
queue:
2017-04-27 09:50:07 +02:00
image: rabbitmq:3-alpine
environment:
- RABBITMQ_DEFAULT_USER=postal
- RABBITMQ_DEFAULT_PASS=changeme
2017-04-27 10:29:03 +02:00
- RABBITMQ_DEFAULT_VHOST=/postal
networks:
default: { aliases: [ postal_rabbitmq, rabbitmq, queue ] }
restart: unless-stopped
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
clamav:
image: mkodockx/docker-clamav:alpine
volumes:
- clamav_data:/var/lib/clamav
networks:
default: { aliases: [ clamav ] }
healthcheck:
test: [ "CMD", "./check.sh" ]
interval: 60s
retries: 3
start_period: 120s
restart: unless-stopped
networks:
default:
client:
http:
volumes:
static_assets:
assets:
clamav_data:
systemdb_data:
systemdb_backup:
systemdb_log:
messagedb_data:
messagedb_backup:
messagedb_log:
storage: