2022-04-29 10:48:25 +00:00
|
|
|
version: '3.3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
nginx-proxy:
|
|
|
|
image: nginxproxy/nginx-proxy
|
|
|
|
container_name: nginx-proxy
|
2022-12-03 02:28:13 +00:00
|
|
|
restart: always
|
2022-04-29 10:48:25 +00:00
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
volumes:
|
|
|
|
- ./volume/nginx-proxy/certs:/etc/nginx/certs
|
|
|
|
- ./volume/nginx-proxy/vhost:/etc/nginx/vhost.d
|
|
|
|
- ./volume/nginx-proxy/html:/usr/share/nginx/html
|
|
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
2022-05-11 16:17:11 +00:00
|
|
|
networks:
|
|
|
|
- front
|
|
|
|
- tubearchivist_network
|
|
|
|
- umami_network
|
2022-05-21 05:39:10 +00:00
|
|
|
- gitea_network
|
2022-04-29 10:48:25 +00:00
|
|
|
nginx-proxy-acme:
|
|
|
|
image: nginxproxy/acme-companion
|
|
|
|
container_name: nginx-proxy-acme
|
2022-12-03 02:28:13 +00:00
|
|
|
restart: always
|
2022-04-29 10:48:25 +00:00
|
|
|
volumes:
|
|
|
|
- ./volume/nginx-proxy/certs:/etc/nginx/certs
|
|
|
|
- ./volume/nginx-proxy/vhost:/etc/nginx/vhost.d
|
|
|
|
- ./volume/nginx-proxy/html:/usr/share/nginx/html
|
|
|
|
- ./volume/nginx-proxy/acme:/etc/acme.sh
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
environment:
|
|
|
|
- NGINX_PROXY_CONTAINER=nginx-proxy
|
2022-05-11 16:17:11 +00:00
|
|
|
networks:
|
|
|
|
- front
|
|
|
|
# main flask site
|
2022-04-29 10:48:25 +00:00
|
|
|
nginx:
|
|
|
|
build: ./tubearchivist/nginx
|
|
|
|
container_name: backend_nginx
|
|
|
|
restart: always
|
|
|
|
expose:
|
|
|
|
- "8000"
|
|
|
|
depends_on:
|
|
|
|
- tubearchivist
|
|
|
|
environment:
|
|
|
|
- VIRTUAL_HOST=tubearchivist.com,www.tubearchivist.com
|
|
|
|
- LETSENCRYPT_HOST=tubearchivist.com,www.tubearchivist.com
|
2022-05-11 16:17:11 +00:00
|
|
|
networks:
|
|
|
|
- tubearchivist_network
|
2022-04-29 10:48:25 +00:00
|
|
|
tubearchivist:
|
|
|
|
container_name: tubearchivist
|
|
|
|
build: ./tubearchivist/web
|
|
|
|
restart: always
|
2022-05-20 12:53:04 +00:00
|
|
|
volumes:
|
|
|
|
- ./volume/tubearchivist/data:/data
|
2022-04-29 10:48:25 +00:00
|
|
|
env_file:
|
|
|
|
- ./env/tubearchivist.env
|
2022-12-03 02:28:13 +00:00
|
|
|
environment:
|
|
|
|
- discord=gkWMk9Qupk
|
2022-04-29 10:48:25 +00:00
|
|
|
expose:
|
|
|
|
- "8080"
|
2022-05-11 16:17:11 +00:00
|
|
|
networks:
|
|
|
|
- tubearchivist_network
|
2022-04-29 10:48:25 +00:00
|
|
|
# backend postgres
|
|
|
|
postgres:
|
|
|
|
image: postgres:14
|
|
|
|
container_name: postgres
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ./volume/postgres:/var/lib/postgresql/data/
|
|
|
|
env_file:
|
|
|
|
- ./env/postgres.env
|
|
|
|
expose:
|
|
|
|
- "5432"
|
2022-05-11 16:17:11 +00:00
|
|
|
networks:
|
|
|
|
- tubearchivist_network
|
2022-05-20 04:41:44 +00:00
|
|
|
redis:
|
|
|
|
image: redislabs/rejson:latest
|
|
|
|
container_name: redis
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:6379:6379"
|
|
|
|
volumes:
|
|
|
|
- ./volume/redis:/data
|
|
|
|
networks:
|
|
|
|
- tubearchivist_network
|
2022-05-02 10:10:49 +00:00
|
|
|
# umami stats
|
|
|
|
umami:
|
|
|
|
image: ghcr.io/mikecao/umami:postgresql-latest
|
|
|
|
container_name: umami
|
|
|
|
expose:
|
|
|
|
- "3000"
|
|
|
|
env_file:
|
|
|
|
- ./env/umami.env
|
|
|
|
environment:
|
2022-05-21 05:39:10 +00:00
|
|
|
- VIRTUAL_HOST=www.stats.tubearchivist.com,stats.tubearchivist.com
|
|
|
|
- LETSENCRYPT_HOST=www.stats.tubearchivist.com,stats.tubearchivist.com
|
2022-05-02 10:10:49 +00:00
|
|
|
depends_on:
|
|
|
|
- umami-db
|
|
|
|
restart: always
|
2022-05-11 16:17:11 +00:00
|
|
|
networks:
|
|
|
|
- umami_network
|
2022-05-02 10:10:49 +00:00
|
|
|
umami-db:
|
|
|
|
image: postgres:14
|
|
|
|
container_name: umami-db
|
|
|
|
env_file:
|
|
|
|
- ./env/umami.env
|
|
|
|
volumes:
|
|
|
|
- ./volume/umami/db:/var/lib/postgresql/data
|
|
|
|
restart: always
|
2022-05-11 16:17:11 +00:00
|
|
|
networks:
|
|
|
|
- umami_network
|
2022-05-21 05:39:10 +00:00
|
|
|
# gitea
|
|
|
|
gitea:
|
|
|
|
image: gitea/gitea
|
|
|
|
container_name: gitea
|
|
|
|
hostname: gitea
|
|
|
|
env_file:
|
|
|
|
- ./env/gitea.env
|
|
|
|
environment:
|
|
|
|
- VIRTUAL_HOST=git.tubearchivist.com,www.git.tubearchivist.com
|
|
|
|
- LETSENCRYPT_HOST=git.tubearchivist.com,www.git.tubearchivist.com
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ./volume/gitea/data:/data
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
expose:
|
|
|
|
- "3000"
|
|
|
|
ports:
|
|
|
|
- '127.0.0.1:22:22'
|
|
|
|
networks:
|
|
|
|
- gitea_network
|
|
|
|
gitea-db:
|
|
|
|
image: postgres:14
|
|
|
|
container_name: gitea-db
|
|
|
|
restart: always
|
|
|
|
env_file:
|
|
|
|
- ./env/gitea.env
|
|
|
|
volumes:
|
|
|
|
- ./volume/gitea/db:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
|
|
- gitea_network
|
2022-12-07 09:51:56 +00:00
|
|
|
redditbot:
|
|
|
|
container_name: redditbot
|
|
|
|
restart: unless-stopped
|
|
|
|
image: bbilly1/redditbot
|
|
|
|
volumes:
|
|
|
|
- ./volume/redditbot/data:/data
|
|
|
|
env_file:
|
|
|
|
- ./env/redditbot.env
|
2022-05-11 16:17:11 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
front:
|
|
|
|
driver: bridge
|
|
|
|
tubearchivist_network:
|
|
|
|
driver: bridge
|
|
|
|
umami_network:
|
|
|
|
driver: bridge
|
2022-05-21 05:39:10 +00:00
|
|
|
gitea_network:
|
|
|
|
driver: bridge
|