postal/docker-compose.yml
2018-07-23 05:34:56 +02:00

53 lines
1.3 KiB
YAML

version: "3"
services:
postal:
image: catdeployed/postal:latest
container_name: postal
command: run
ports:
- 127.0.0.1:25:25
depends_on:
- "mysql"
- "rabbitmq"
volumes:
- static_assets:/opt/postal/public
- ./data/postal/assets:/opt/postal/public/assets
- ./src/templates/:/templates
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
nginx:
image: nginx
restart: always
ports:
- 127.0.0.1:80:80
links:
- postal
depends_on:
- postal
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- static_assets:/opt/postal/public:ro
- ./data/postal/assets:/opt/postal/public/assets:ro
volumes:
static_assets: