Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated docker-compose.yml #393

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
149 changes: 75 additions & 74 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,82 +1,83 @@
db:
image: postgres
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
services:
db:
image: postgres
environment:
- POSTGRES_HOST_AUTH_METHOD=trust

uwsgi:
restart: always
uwsgi:
restart: always

# IMPORTANT: update the tag to coincide with release version
image: quay.io/vanessa/sregistry
env_file:
- ./.minio-env
volumes:
- .:/code
- ./static:/var/www/static
- ./images:/var/www/images
# uncomment for PAM auth
#- /etc/passwd:/etc/passwd
#- /etc/shadow:/etc/shadow
links:
- minio
- redis
- db
# IMPORTANT: update the tag to coincide with release version
image: quay.io/vanessa/sregistry
env_file:
- ./.minio-env
volumes:
- .:/code
- ./static:/var/www/static
- ./images:/var/www/images
# uncomment for PAM auth
#- /etc/passwd:/etc/passwd
#- /etc/shadow:/etc/shadow
links:
- minio
- redis
- db

nginx:
restart: always
image: quay.io/vanessa/sregistry_nginx
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./uwsgi_params.par:/etc/nginx/uwsgi_params.par:ro
volumes_from:
- uwsgi
links:
- uwsgi
- db
nginx:
restart: always
image: quay.io/vanessa/sregistry_nginx
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./uwsgi_params.par:/etc/nginx/uwsgi_params.par:ro
volumes_from:
- uwsgi
links:
- uwsgi
- db

redis:
restart: always
image: redis:latest
redis:
restart: always
image: redis:latest

scheduler:
# IMPORTANT: update the tag to coincide with release version
image: quay.io/vanessa/sregistry
command: python /code/manage.py rqscheduler
volumes:
- .:/code
volumes_from:
- uwsgi
env_file:
- ./.minio-env
links:
- minio
- redis
- db
scheduler:
# IMPORTANT: update the tag to coincide with release version
image: quay.io/vanessa/sregistry
command: python /code/manage.py rqscheduler
volumes:
- .:/code
volumes_from:
- uwsgi
env_file:
- ./.minio-env
links:
- minio
- redis
- db

worker:
worker:

# IMPORTANT: update the tag to coincide with release version
image: quay.io/vanessa/sregistry
command: python /code/manage.py rqworker default
volumes:
- .:/code
volumes_from:
- uwsgi
env_file:
- ./.minio-env
links:
- minio
- redis
- db
# IMPORTANT: update the tag to coincide with release version
image: quay.io/vanessa/sregistry
command: python /code/manage.py rqworker default
volumes:
- .:/code
volumes_from:
- uwsgi
env_file:
- ./.minio-env
links:
- minio
- redis
- db

minio:
image: minio/minio
volumes:
- ./minio-images:/images
env_file:
- ./.minio-env
ports:
- "9000:9000"
command: ["server", "images"]
minio:
image: minio/minio
volumes:
- ./minio-images:/images
env_file:
- ./.minio-env
ports:
- "9000:9000"
command: ["server", "images"]
159 changes: 80 additions & 79 deletions https/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,88 +1,89 @@
db:
image: postgres
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
services:
db:
image: postgres
environment:
- POSTGRES_HOST_AUTH_METHOD=trust

uwsgi:
restart: always
uwsgi:
restart: always

# IMPORTANT: update the tag to coincide with release version
image: quay.io/vanessa/sregistry
env_file:
- ./.minio-env
volumes:
- .:/code
- ./static:/var/www/static
- ./images:/var/www/images
# uncomment for PAM auth
#- /etc/passwd:/etc/passwd
#- /etc/shadow:/etc/shadow
links:
- minio
- redis
- db
# IMPORTANT: update the tag to coincide with release version
image: quay.io/vanessa/sregistry
env_file:
- ./.minio-env
volumes:
- .:/code
- ./static:/var/www/static
- ./images:/var/www/images
# uncomment for PAM auth
#- /etc/passwd:/etc/passwd
#- /etc/shadow:/etc/shadow
links:
- minio
- redis
- db

nginx:
restart: always
image: quay.io/vanessa/sregistry_nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./uwsgi_params.par:/etc/nginx/uwsgi_params.par:ro
- /etc/ssl/certs:/etc/ssl/certs:ro
- /etc/ssl/private:/etc/ssl/private:ro
volumes_from:
- uwsgi
links:
- uwsgi
- db
nginx:
restart: always
image: quay.io/vanessa/sregistry_nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./uwsgi_params.par:/etc/nginx/uwsgi_params.par:ro
- /etc/ssl/certs:/etc/ssl/certs:ro
- /etc/ssl/private:/etc/ssl/private:ro
volumes_from:
- uwsgi
links:
- uwsgi
- db

redis:
restart: always
image: redis:latest
redis:
restart: always
image: redis:latest

scheduler:
scheduler:

# IMPORTANT: update the tag to coincide with release version
image: quay.io/vanessa/sregistry
command: python /code/manage.py rqscheduler
volumes:
- .:/code
volumes_from:
- uwsgi
env_file:
- ./.minio-env
links:
- minio
- redis
- db
# IMPORTANT: update the tag to coincide with release version
image: quay.io/vanessa/sregistry
command: python /code/manage.py rqscheduler
volumes:
- .:/code
volumes_from:
- uwsgi
env_file:
- ./.minio-env
links:
- minio
- redis
- db

worker:
worker:

# IMPORTANT: update the tag to coincide with release version
image: quay.io/vanessa/sregistry
command: python /code/manage.py rqworker default
volumes:
- .:/code
volumes_from:
- uwsgi
env_file:
- ./.minio-env
links:
- minio
- redis
- db
# IMPORTANT: update the tag to coincide with release version
image: quay.io/vanessa/sregistry
command: python /code/manage.py rqworker default
volumes:
- .:/code
volumes_from:
- uwsgi
env_file:
- ./.minio-env
links:
- minio
- redis
- db

minio:
image: minio/minio
volumes:
- ./minio-images:/images
- /etc/ssl/certs/chained.pem:/root/.minio/certs/public.crt:ro
- /etc/ssl/private/private.key:/root/.minio/certs/private.key:ro
env_file:
- ./.minio-env
ports:
- "9000:9000"
command: ["server", "images"]
minio:
image: minio/minio
volumes:
- ./minio-images:/images
- /etc/ssl/certs/chained.pem:/root/.minio/certs/public.crt:ro
- /etc/ssl/private/private.key:/root/.minio/certs/private.key:ro
env_file:
- ./.minio-env
ports:
- "9000:9000"
command: ["server", "images"]