add imgen
This commit is contained in:
parent
818126dd77
commit
d359f10133
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "Image Gen"]
|
||||||
|
path = docker/imgen
|
||||||
|
url = https://github.com/DonovanDMC/ImageGen
|
@ -29,7 +29,7 @@ services:
|
|||||||
postgres:
|
postgres:
|
||||||
image: postgres:14-alpine
|
image: postgres:14-alpine
|
||||||
volumes:
|
volumes:
|
||||||
- db_data:/var/lib/postgresql/data
|
- ./data/postgres:/var/lib/postgresql/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=websites
|
- POSTGRES_USER=websites
|
||||||
@ -49,7 +49,7 @@ services:
|
|||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
command: redis-server --save 10 1 --loglevel warning
|
command: redis-server --save 10 1 --loglevel warning
|
||||||
volumes:
|
volumes:
|
||||||
- redis_data:/data
|
- ./data/redis:/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: redis-cli ping
|
test: redis-cli ping
|
||||||
@ -61,6 +61,51 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- default
|
- 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:
|
networks:
|
||||||
default:
|
default:
|
||||||
name: websites4
|
name: websites4
|
||||||
@ -69,7 +114,3 @@ networks:
|
|||||||
driver: default
|
driver: default
|
||||||
config:
|
config:
|
||||||
- subnet: 172.19.3.64/27
|
- subnet: 172.19.3.64/27
|
||||||
|
|
||||||
volumes:
|
|
||||||
db_data:
|
|
||||||
redis_data:
|
|
||||||
|
@ -58,6 +58,51 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- default
|
- 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:
|
networks:
|
||||||
default:
|
default:
|
||||||
name: websites4
|
name: websites4
|
||||||
@ -72,3 +117,4 @@ volumes:
|
|||||||
redis_data:
|
redis_data:
|
||||||
e621_thumbnail_data:
|
e621_thumbnail_data:
|
||||||
oceanic_docs_data:
|
oceanic_docs_data:
|
||||||
|
rethinkdb_data:
|
||||||
|
1
docker/imgen
Submodule
1
docker/imgen
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 3f2a2cafc5adb72ef6a0aa69026ce0197e1833fe
|
Loading…
Reference in New Issue
Block a user