restarted work
This commit is contained in:
27
docker-compose.yml
Normal file
27
docker-compose.yml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
core:
|
||||||
|
image: kopano
|
||||||
|
postfix:
|
||||||
|
image: postfix
|
||||||
|
volumes:
|
||||||
|
- spool:/var/spool/postfix
|
||||||
|
webapp:
|
||||||
|
image: webapp
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.http.routers.webapp.rule=Host(`$MAIL_DOMAIN`)
|
||||||
|
- traefik.http.routers.webapp.tls=true
|
||||||
|
- traefik.http.routers.webapp.tls.certResolver=default
|
||||||
|
volumes:
|
||||||
|
- z-push:/var/lib/z-push
|
||||||
|
db:
|
||||||
|
image: mysql
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- database:/var/lib/mysql
|
||||||
|
volumes:
|
||||||
|
- attachments:
|
||||||
|
- database:
|
||||||
|
- z-push:
|
||||||
|
- spool:
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
version: '3'
|
|
||||||
services:
|
|
||||||
db:
|
|
||||||
image: mysql:latest
|
|
||||||
container_name: mysql
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
MYSQL_ROOT_PASSWORD: Asdf2345
|
|
||||||
ports:
|
|
||||||
- 3307:3306
|
|
||||||
networks:
|
|
||||||
- kopano
|
|
||||||
volumes:
|
|
||||||
- ~/kopano/mysql/etc:/etc/mysql
|
|
||||||
- database:/var/lib/mysql
|
|
||||||
secrets:
|
|
||||||
db_root_password:
|
|
||||||
file: db_root_password.txt
|
|
||||||
networks:
|
|
||||||
- kopano
|
|
||||||
volumes:
|
|
||||||
- database:
|
|
||||||
@@ -4,7 +4,7 @@ docker run -d --name apache -p80:80 -v/root/kopano/dist:/var/www httpd
|
|||||||
# export DOCKER_BUILDKIT=1
|
# export DOCKER_BUILDKIT=1
|
||||||
docker build -t webapp .
|
docker build -t webapp .
|
||||||
# docker tag -t webapp:latest ...
|
# docker tag -t webapp:latest ...
|
||||||
docker run --rm -it --name webapp -d MAIL_DOMAIN=zntrl.de -v/root/kopano/webapp/etc/apache2:/etc/apache2 -v/root/kopano/webapp/etc/ssl:/etc/ssl webapp
|
docker run --rm -it --name webapp -e "MAIL_DOMAIN=zntrl.de" -v/root/kopano/webapp/etc/apache2:/etc/apache2 -v/root/kopano/webapp/etc/ssl:/etc/ssl webapp
|
||||||
docker logs -f webapp
|
docker logs -f webapp
|
||||||
docker exec -it webapp bash
|
docker exec -it webapp bash
|
||||||
|
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
version: '1'
|
|
||||||
services:
|
|
||||||
webapp:
|
|
||||||
image: webapp:latest
|
|
||||||
container_name: webapp
|
|
||||||
env_file: .env
|
|
||||||
restart: always
|
|
||||||
labels:
|
|
||||||
- traefik.enable=true
|
|
||||||
- traefik.http.routers.webapp.rule=Host(`mail.$MAIL_DOMAIN`)
|
|
||||||
- traefik.http.routers.webapp.entrypoints=web-secure
|
|
||||||
- traefik.http.routers.webapp.tls=true
|
|
||||||
- traefik.http.routers.webapp.tls.certResolver=default
|
|
||||||
# - traefik.http.routers.webapp.tls.options=strongcipher@file
|
|
||||||
# - traefik.http.services.webapp.loadbalancer.server.port=80
|
|
||||||
networks:
|
|
||||||
- kopano
|
|
||||||
- traefik
|
|
||||||
volumes:
|
|
||||||
- z-push:/var/lib/z-push
|
|
||||||
networks:
|
|
||||||
- kopano:
|
|
||||||
external: true
|
|
||||||
- traefik:
|
|
||||||
external: true
|
|
||||||
volumes:
|
|
||||||
- z-push:
|
|
||||||
Reference in New Issue
Block a user