postal/alpine/docker-compose.yml

64 lines
1.6 KiB
YAML
Raw Normal View History

2017-04-26 22:35:49 +02:00
version: "3"
services:
postal:
2018-08-01 04:52:45 +02:00
image: catdeployed/postal:alpine
2017-04-26 22:35:49 +02:00
container_name: postal
2017-05-06 04:31:47 +02:00
command: run
2017-04-28 00:34:48 +02:00
ports:
2017-05-11 01:03:06 +02:00
- 127.0.0.1:25:25
2017-05-06 04:31:47 +02:00
depends_on:
- "mysql"
- "rabbitmq"
2017-04-27 10:38:29 +02:00
volumes:
2020-05-02 05:39:50 +02:00
- ./config/postal.yml:/opt/postal/config/postal.yml
- static_assets:/opt/postal/public
- postal_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:
2017-04-27 10:29:03 +02:00
- MYSQL_ROOT_PASSWORD=changeme
- MYSQL_DATABASE=postal
- 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=SecretCatPassword
- POSTAL_EMAIL=myemail@catsworld.com
healthcheck:
test: curl -sS http://127.0.0.1:5000 || exit 1
interval: 5s
timeout: 10s
retries: 3
2017-04-27 09:50:07 +02:00
mysql:
image: mariadb:10
container_name: postal_mysql
2017-04-27 11:36:31 +02:00
volumes:
- mysql_data:/var/lib/mysql
2017-04-27 09:50:07 +02:00
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
2017-04-27 10:29:03 +02:00
- RABBITMQ_DEFAULT_VHOST=/postal
nginx:
image: nginx
2018-08-03 04:20:29 +02:00
container_name: postal_nginx
ports:
2020-04-18 22:27:44 +02:00
- 80:80
links:
- postal
depends_on:
- postal
volumes:
2018-07-24 00:22:42 +02:00
- ./src/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- static_assets:/opt/postal/public:ro
- postal_assets:/opt/postal/public/assets:ro
volumes:
static_assets:
postal_assets:
mysql_data: