postal/docker-compose.yml
2017-04-27 18:34:48 -04:00

34 lines
852 B
YAML

version: "3"
services:
postal:
build: .
image: postal
container_name: postal
ports:
- 80:5000
volumes:
- ./data/postal:/opt/postal/config
- ./data/docker:/docker
environment:
- POSTAL_HOSTNAME=idontknow.nowhere.com
- 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