Add some volumes

This commit is contained in:
Stephan Porada 2021-04-30 15:05:53 +02:00
parent 0d926c760b
commit 61307150e5

View File

@ -11,6 +11,7 @@ services:
- osp-db - osp-db
- osp-redis - osp-redis
container_name: osp-app container_name: osp-app
entrypoint: ["/opt/osp/setup/docker/wait-for-it.sh", "db:3306", "-t", "60", "--", "/opt/osp/setup/docker/entrypoint.sh"]
env_file: live.env env_file: live.env
image: deamos/openstreamingplatform:latest image: deamos/openstreamingplatform:latest
labels: labels:
@ -18,20 +19,22 @@ services:
- "com.centurylinklabs.watchtower.enable=true" - "com.centurylinklabs.watchtower.enable=true"
# Routes # Routes
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.nextcloud.entrypoints=websecure" - "traefik.http.routers.osp.entrypoints=websecure"
- "traefik.http.routers.nextcloud.rule=Host(`osp.${DOMAIN}`)" - "traefik.http.routers.osp.rule=Host(`osp.${DOMAIN}`)"
- "traefik.http.routers.nextcloud.tls=true" - "traefik.http.routers.osp.tls=true"
- "traefik.http.routers.nextcloud.tls.certresolver=myresolver" - "traefik.http.routers.osp.tls.certresolver=myresolver"
- "traefik.http.services.nextcloud.loadbalancer.server.port=80" - "traefik.http.services.osp.loadbalancer.server.port=80"
networks: networks:
- default - default
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ${OSP_ROOT}/data:/var/www - ${OSP_ROOT}/data:/var/www
- ${OSP_ROOT}/data/nginx/conf:/usr/local/nginx/conf
osp-db: osp-db:
image: mariadb:10 image: mariadb:10
container_name: osp-db container_name: osp-db
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: unless-stopped restart: unless-stopped
env_file: live.env env_file: live.env
labels: labels: