mirror of
https://github.com/tubearchivist/tubearchivist-server.git
synced 2024-11-14 16:10:12 +00:00
add drone, split networks in compose
This commit is contained in:
parent
d93db966ff
commit
50d17c6c3c
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,6 +6,7 @@ config.json
|
|||||||
postgres.env
|
postgres.env
|
||||||
tubearchivist.env
|
tubearchivist.env
|
||||||
umami.env
|
umami.env
|
||||||
|
drone.env
|
||||||
|
|
||||||
# example hooks
|
# example hooks
|
||||||
docker-hook.json
|
docker-hook.json
|
||||||
|
@ -12,6 +12,11 @@ services:
|
|||||||
- ./volume/nginx-proxy/vhost:/etc/nginx/vhost.d
|
- ./volume/nginx-proxy/vhost:/etc/nginx/vhost.d
|
||||||
- ./volume/nginx-proxy/html:/usr/share/nginx/html
|
- ./volume/nginx-proxy/html:/usr/share/nginx/html
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
networks:
|
||||||
|
- front
|
||||||
|
- tubearchivist_network
|
||||||
|
- umami_network
|
||||||
|
- drone_network
|
||||||
nginx-proxy-acme:
|
nginx-proxy-acme:
|
||||||
image: nginxproxy/acme-companion
|
image: nginxproxy/acme-companion
|
||||||
container_name: nginx-proxy-acme
|
container_name: nginx-proxy-acme
|
||||||
@ -23,6 +28,9 @@ services:
|
|||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
environment:
|
environment:
|
||||||
- NGINX_PROXY_CONTAINER=nginx-proxy
|
- NGINX_PROXY_CONTAINER=nginx-proxy
|
||||||
|
networks:
|
||||||
|
- front
|
||||||
|
# main flask site
|
||||||
nginx:
|
nginx:
|
||||||
build: ./tubearchivist/nginx
|
build: ./tubearchivist/nginx
|
||||||
container_name: backend_nginx
|
container_name: backend_nginx
|
||||||
@ -34,7 +42,8 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- VIRTUAL_HOST=tubearchivist.com,www.tubearchivist.com
|
- VIRTUAL_HOST=tubearchivist.com,www.tubearchivist.com
|
||||||
- LETSENCRYPT_HOST=tubearchivist.com,www.tubearchivist.com
|
- LETSENCRYPT_HOST=tubearchivist.com,www.tubearchivist.com
|
||||||
# main flask site
|
networks:
|
||||||
|
- tubearchivist_network
|
||||||
tubearchivist:
|
tubearchivist:
|
||||||
container_name: tubearchivist
|
container_name: tubearchivist
|
||||||
build: ./tubearchivist/web
|
build: ./tubearchivist/web
|
||||||
@ -43,6 +52,8 @@ services:
|
|||||||
- ./env/tubearchivist.env
|
- ./env/tubearchivist.env
|
||||||
expose:
|
expose:
|
||||||
- "8080"
|
- "8080"
|
||||||
|
networks:
|
||||||
|
- tubearchivist_network
|
||||||
# backend postgres
|
# backend postgres
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:14
|
image: postgres:14
|
||||||
@ -54,6 +65,8 @@ services:
|
|||||||
- ./env/postgres.env
|
- ./env/postgres.env
|
||||||
expose:
|
expose:
|
||||||
- "5432"
|
- "5432"
|
||||||
|
networks:
|
||||||
|
- tubearchivist_network
|
||||||
# umami stats
|
# umami stats
|
||||||
umami:
|
umami:
|
||||||
image: ghcr.io/mikecao/umami:postgresql-latest
|
image: ghcr.io/mikecao/umami:postgresql-latest
|
||||||
@ -68,6 +81,8 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- umami-db
|
- umami-db
|
||||||
restart: always
|
restart: always
|
||||||
|
networks:
|
||||||
|
- umami_network
|
||||||
umami-db:
|
umami-db:
|
||||||
image: postgres:14
|
image: postgres:14
|
||||||
container_name: umami-db
|
container_name: umami-db
|
||||||
@ -77,3 +92,43 @@ services:
|
|||||||
- ./volume/umami/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro
|
- ./volume/umami/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro
|
||||||
- ./volume/umami/db:/var/lib/postgresql/data
|
- ./volume/umami/db:/var/lib/postgresql/data
|
||||||
restart: always
|
restart: always
|
||||||
|
networks:
|
||||||
|
- umami_network
|
||||||
|
# drone build server
|
||||||
|
drone:
|
||||||
|
image: drone/drone:2
|
||||||
|
container_name: drone
|
||||||
|
expose:
|
||||||
|
- "80"
|
||||||
|
env_file:
|
||||||
|
- ./env/drone.env
|
||||||
|
environment:
|
||||||
|
- VIRTUAL_HOST=www.drone.tubearchivist.com,drone.tubearchivist.com
|
||||||
|
- LETSENCRYPT_HOST=www.drone.tubearchivist.com,drone.tubearchivist.com
|
||||||
|
volumes:
|
||||||
|
- ./volume/drone/server:/data
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- drone_network
|
||||||
|
drone-runner:
|
||||||
|
image: drone/drone-runner-docker
|
||||||
|
container_name: drone-runner
|
||||||
|
expose:
|
||||||
|
- "3000"
|
||||||
|
env_file:
|
||||||
|
- ./env/drone.env
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- drone_network
|
||||||
|
|
||||||
|
networks:
|
||||||
|
front:
|
||||||
|
driver: bridge
|
||||||
|
tubearchivist_network:
|
||||||
|
driver: bridge
|
||||||
|
umami_network:
|
||||||
|
driver: bridge
|
||||||
|
drone_network:
|
||||||
|
driver: bridge
|
||||||
|
9
env/drone.sample.env
vendored
Normal file
9
env/drone.sample.env
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
DRONE_GITHUB_CLIENT_ID=aaaaaaaaaaaa
|
||||||
|
DRONE_GITHUB_CLIENT_SECRET=bbbbbbbbbbbbbbbbb
|
||||||
|
DRONE_RPC_SECRET=ccccccccccccc
|
||||||
|
DRONE_SERVER_HOST=www.drone.tubearchivist.com
|
||||||
|
DRONE_SERVER_PROTO=https
|
||||||
|
DRONE_RUNNER_CAPACITY=1
|
||||||
|
DRONE_RUNNER_NAME=tubearchivist
|
||||||
|
DRONE_RPC_PROTO=https
|
||||||
|
DRONE_RPC_HOST=www.drone.tubearchivist.com
|
Loading…
Reference in New Issue
Block a user