postal/docker-compose.yml
2017-05-12 17:17:23 -04:00

38 lines
969 B
YAML

version: "3"
services:
postal:
image: alinuxninja/postal
container_name: postal
command: run
ports:
- 127.0.0.1:80:5000
- 127.0.0.1:25:25
depends_on:
- "mysql"
- "rabbitmq"
volumes:
- ./data/postal/assets:/opt/postal/public/assets
- ./data/postal/config:/opt/postal/config
- ./data/docker:/docker
environment:
- MYSQL_ROOT_PASSWORD=changeme
- MYSQL_DATABASE=postal
- RABBITMQ_DEFAULT_USER=postal
- RABBITMQ_DEFAULT_PASS=changeme
- RABBITMQ_DEFAULT_VHOST=postal
mysql:
image: mariadb:10
container_name: postal_mysql
volumes:
- ./data/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=changeme
- MYSQL_DATABASE=postal
rabbitmq:
image: rabbitmq:3-alpine
container_name: postal_rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=postal
- RABBITMQ_DEFAULT_PASS=changeme
- RABBITMQ_DEFAULT_VHOST=/postal