snappymail/docker-compose.yml

101 lines
2 KiB
YAML
Raw Normal View History

2017-09-20 04:04:27 +08:00
version: '2'
services:
2018-02-27 06:59:21 +08:00
mail:
image: tvial/docker-mailserver:latest
hostname: mail
container_name: rl.mail
domainname: domain.com
restart: always
ports:
- 25:25
- 143:143
volumes:
- maildata:/var/mail
- mailstate:/var/mail-state
- ./.docker/mail/config/:/tmp/docker-mailserver/
environment:
- ENABLE_SPAMASSASSIN=0
- ENABLE_CLAMAV=0
- ENABLE_FAIL2BAN=0
- ENABLE_POSTGREY=0
- ENABLE_MANAGESIEVE=1
- ONE_DIR=1
- DMS_DEBUG=0
cap_add:
- NET_ADMIN
- SYS_PTRACE
db:
image: mysql:5.7
hostname: db
container_name: rl.db
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: rainloop
MYSQL_PASSWORD: rainloop
MYSQL_DATABASE: rainloop
volumes:
- mysql:/var/lib/mysql
- tmp:/tmp
2018-02-27 06:59:21 +08:00
php:
build:
context: ./.docker/php
hostname: php
container_name: rl.php
expose:
- 9000
depends_on:
- db
- mail
volumes:
- ./:/var/www
# - ./build/local/:/var/www
2018-02-27 06:59:21 +08:00
- ./.docker/php/rainloop.ini:/usr/local/etc/php/conf.d/rainloop.ini
- tmp:/tmp
2017-09-20 04:04:27 +08:00
node:
2018-02-27 06:59:21 +08:00
build:
context: ./.docker/node
hostname: node
container_name: rl.node
working_dir: /var/www
command: sh -c 'yarn --version'
2017-09-20 04:04:27 +08:00
volumes:
2018-02-27 06:59:21 +08:00
- ./:/var/www
- tmp:/tmp
2018-02-27 06:59:21 +08:00
nginx:
image: nginx:latest
hostname: nginx
container_name: rl.nginx
depends_on:
- php
ports:
2018-03-30 05:43:46 +08:00
- 443:443
2018-02-27 06:59:21 +08:00
- 80:80
volumes:
- ./:/var/www
# - ./build/local/:/var/www
2018-03-30 05:43:46 +08:00
- ./.docker/nginx/ssl:/etc/nginx/ssl
2018-02-27 06:59:21 +08:00
- ./.docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- tmp:/tmp
2018-03-07 03:26:43 +08:00
tx:
build:
context: ./.docker/tx
hostname: tx
container_name: rl.tx
working_dir: /var/www
command: sh -c 'tx --version'
volumes:
- ./:/var/www
- ./.docker/.cache/tx/root:/root
- tmp:/tmp
2017-09-20 04:04:27 +08:00
2018-02-27 06:59:21 +08:00
volumes:
mysql:
driver: local
maildata:
driver: local
mailstate:
driver: local
tmp:
driver: local