add imgen

This commit is contained in:
Donovan Daniels 2024-05-03 00:29:17 -05:00
parent 818126dd77
commit d359f10133
Signed by: Donovan_DMC
GPG Key ID: 907D29CBFD6157BA
4 changed files with 97 additions and 6 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "Image Gen"]
path = docker/imgen
url = https://github.com/DonovanDMC/ImageGen

View File

@ -29,7 +29,7 @@ services:
postgres:
image: postgres:14-alpine
volumes:
- db_data:/var/lib/postgresql/data
- ./data/postgres:/var/lib/postgresql/data
restart: unless-stopped
environment:
- POSTGRES_USER=websites
@ -49,7 +49,7 @@ services:
image: redis:alpine
command: redis-server --save 10 1 --loglevel warning
volumes:
- redis_data:/data
- ./data/redis:/data
restart: unless-stopped
healthcheck:
test: redis-cli ping
@ -61,6 +61,51 @@ services:
networks:
- default
imgen:
image: ghcr.io/donovandmc/imgen
init: true
volumes:
- ./docker/imgen:/app
restart: always
healthcheck:
interval: 10s
timeout: 2s
test: lsof -i :3621 || exit 1
depends_on:
rethinkdb:
condition: service_started
redis:
condition: service_healthy
deploy:
resources:
limits:
memory: 256M
cpus: "1"
environment:
<<: *common-env
hostname: imgen.websites4.containers.local
labels:
- "hostname=imgen.websites4.containers.local"
rethinkdb:
image: rethinkdb
command: rethinkdb --bind all -n rdb
container_name: rethinkdb.websites4
volumes:
- ./data/rethink:/data
deploy:
resources:
limits:
memory: 256M
reservations:
memory: 64M
restart: always
hostname: rethinkdb.websites4.containers.local
labels:
- "hostname=rethinkdb.websites4.containers.local"
networks:
- default
networks:
default:
name: websites4
@ -69,7 +114,3 @@ networks:
driver: default
config:
- subnet: 172.19.3.64/27
volumes:
db_data:
redis_data:

View File

@ -58,6 +58,51 @@ services:
networks:
- default
imgen:
image: ghcr.io/donovandmc/imgen
init: true
volumes:
- ./docker/imgen:/app
restart: always
healthcheck:
interval: 10s
timeout: 2s
test: lsof -i :3621 || exit 1
depends_on:
rethinkdb:
condition: service_started
redis:
condition: service_healthy
deploy:
resources:
limits:
memory: 256M
cpus: "1"
environment:
<<: *common-env
hostname: imgen.websites4.containers.local
labels:
- "hostname=imgen.websites4.containers.local"
rethinkdb:
image: rethinkdb
command: rethinkdb --bind all -n rdb
container_name: rethinkdb.websites4
volumes:
- rethinkdb_data:/data
deploy:
resources:
limits:
memory: 256M
reservations:
memory: 64M
restart: always
hostname: rethinkdb.websites4.containers.local
labels:
- "hostname=rethinkdb.websites4.containers.local"
networks:
- default
networks:
default:
name: websites4
@ -72,3 +117,4 @@ volumes:
redis_data:
e621_thumbnail_data:
oceanic_docs_data:
rethinkdb_data:

1
docker/imgen Submodule

@ -0,0 +1 @@
Subproject commit 3f2a2cafc5adb72ef6a0aa69026ce0197e1833fe