]> Untitled Git - proxy.git/blob - docker-compose.yml
Ignore vi swp files
[proxy.git] / docker-compose.yml
1 # requires variable config loading, such as:
2 # docker stack deploy -c <(docker-compose config) proxy
3 #
4 # also needs an .env file with some variables like:
5 # LOCAL_STORAGE=/mnt/data2/purplebirdman/art
6 # IPV4_WAN=public.purplebirdman.com
7
8 version: '3'
9 services:
10     proxy:
11         image: nginx:1.17
12         deploy:
13             restart_policy:
14                 condition: on-failure
15                 delay: 5s
16                 max_attempts: 5
17                 window: 10s
18         volumes:
19         - ./proxy/nginx.conf:/etc/nginx/nginx.conf
20         environment:
21         - NGINX_HOST=purplebirdman.com
22         - NGINX_PORT=80
23         ports:
24         - 80:80
25         - 443:443
26     kanboard:
27         image: kanboard/kanboard:v1.2.26
28         deploy:
29             restart_policy:
30                 condition: on-failure
31                 delay: 5s
32                 max_attempts: 5
33                 window: 10s
34         volumes:
35         - kanboard_data:/var/www/app/data
36         - kanboard_plugins:/var/www/app/plugins
37         - kanboard_ssl:/etc/nginx/ssl
38     public:
39         image: cliftonpalmer/public:1.0.0
40         volumes:
41         - ${LOCAL_STORAGE}:/storage
42         - public_data:/usr/local/apache2/htdocs
43         environment:
44         - PUBLIC_ROOT_DIR=/storage
45         - PUBLIC_LINK_DIR=/usr/local/apache2/htdocs
46         - PUBLIC_HTTP_URI=http://${IPV4_WAN}
47 volumes:
48     kanboard_data:
49         driver: local
50         driver_opts:
51             o: bind
52             type: none
53             device: /mnt/kanboard_data
54     kanboard_plugins:
55         driver: local
56     kanboard_ssl:
57         driver: local
58     public_data:
59         driver: local
60         driver_opts:
61             o: bind
62             type: none
63             device: /mnt/public_data