tubearchivist-server/docker-compose_production.yml

181 lines
4.3 KiB
YAML
Raw Normal View History

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
2023-07-31 15:54:14 +00:00
build: ./tubearchivist/web
2022-04-29 10:48:25 +00:00
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
2023-03-22 08:54:12 +00:00
docs:
build: https://github.com/tubearchivist/docs.git
container_name: docs
restart: always
expose:
- "8081"
environment:
- NGINX_PORT=8081
- VIRTUAL_HOST=docs.tubearchivist.com
- LETSENCRYPT_HOST=docs.tubearchivist.com
networks:
- tubearchivist_network
2023-08-01 03:28:07 +00:00
discord-bot:
container_name: discord-bot
build: https://github.com/tubearchivist/discord-bot.git
restart: always
env_file:
- ./env/discord-bot.env
networks:
- tubearchivist_network
2022-04-29 10:48:25 +00:00
# backend postgres
postgres:
2023-05-13 08:21:50 +00:00
image: postgres:15
2022-04-29 10:48:25 +00:00
container_name: postgres
restart: always
volumes:
2023-05-13 08:21:50 +00:00
- ./volume/tubearchivist/postgres15:/var/lib/postgresql/data/
2022-04-29 10:48:25 +00:00
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:
2023-05-13 08:21:50 +00:00
image: ghcr.io/umami-software/umami:postgresql-latest
2022-05-02 10:10:49 +00:00
container_name: umami
expose:
- "3000"
env_file:
- ./env/umami.env
environment:
2023-03-25 10:27:51 +00:00
- VIRTUAL_HOST=stats.tubearchivist.com
- LETSENCRYPT_HOST=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:
2023-05-13 08:21:50 +00:00
image: postgres:15
2022-05-02 10:10:49 +00:00
container_name: umami-db
env_file:
- ./env/umami.env
volumes:
2023-05-13 08:21:50 +00:00
- ./volume/umami/postgres15:/var/lib/postgresql/data
2022-05-02 10:10:49 +00:00
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:
2023-03-25 10:27:51 +00:00
- VIRTUAL_HOST=git.tubearchivist.com
- LETSENCRYPT_HOST=git.tubearchivist.com
2022-05-21 05:39:10 +00:00
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:
2023-05-13 08:21:50 +00:00
image: postgres:15
2022-05-21 05:39:10 +00:00
container_name: gitea-db
restart: always
env_file:
- ./env/gitea.env
volumes:
2023-05-13 08:21:50 +00:00
- ./volume/gitea/postgres15:/var/lib/postgresql/data
2022-05-21 05:39:10 +00:00
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