aboutsummaryrefslogtreecommitdiff
path: root/docker-compose.yaml
blob: c268cf159975eb2c6cd7dbeb66af4b0aa6f30f98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '2'

services:
  proxy:
    image: jwilder/nginx-proxy
    container_name: nginx-proxy
    restart: always
    ports:
      - '80:80'
      - '443:443'
    volumes:
      - /var/run/docker.sock:/tmp/docker.sock:ro
      - /etc/nginx/vhost.d
      - /usr/share/nginx/html
      - "${VOLUME_HOME}/docker/certs:/etc/nginx/certs:ro"

  ssl_companion:
    image: jrcs/letsencrypt-nginx-proxy-companion
    container_name: ssl-companion
    restart: always
    volumes:
      - "${VOLUME_HOME}/docker/certs:/etc/nginx/certs:rw"
      - /var/run/docker.sock:/var/run/docker.sock:ro
    volumes_from:
      - proxy
    depends_on:
      - proxy

  static:
    image: nginx
    container_name: static-nginx
    restart: always
    volumes:
      - "${VOLUME_HOME}/static:/usr/share/nginx/html"
    ports:
      - "5001:80"
    environment:
      - VIRTUAL_HOST=${TLD}
      - VIRTUAL_PORT=5001
      - LETSENCRYPT_HOST=${TLD}
      - LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}

  wallabag:
    image: wallabag/wallabag
    container_name: wallabag
    restart: always
    volumes:
      - "${VOLUME_HOME}/applications/wallabag/data:/var/www/wallabag/data"
      - "${VOLUME_HOME}/applications/wallabag/images:/var/www/wallabag/web/assets/images"
    ports:
      - "5000:80"
    environment:
      - SYMFONY__ENV__FOSUSER_REGISTRATION=false
      - SYMFONY__ENV__FOSUSER_CONFIRMATION=false
      - SYMFONY__ENV__DOMAIN_NAME=https://wallabag.${TLD}
      - VIRTUAL_HOST=wallabag.${TLD}
      - VIRTUAL_PORT=5000
      - LETSENCRYPT_HOST=wallabag.${TLD}
      - LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}