mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 03:49:10 +02:00
docker: remove hardcoded container names
This allows for multiple instances of the project to coexist on the same machine. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
0c617f1064
commit
778632a445
|
@ -7,7 +7,6 @@ services:
|
||||||
- "MYSQL_DATABASE=layersdb"
|
- "MYSQL_DATABASE=layersdb"
|
||||||
- "MYSQL_ROOT_PASSWORD=testingpw"
|
- "MYSQL_ROOT_PASSWORD=testingpw"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: layersdb
|
|
||||||
layersapp:
|
layersapp:
|
||||||
depends_on:
|
depends_on:
|
||||||
- layersdb
|
- layersdb
|
||||||
|
@ -28,7 +27,6 @@ services:
|
||||||
#- "EMAIL_PORT=<set this here if not the default>"
|
#- "EMAIL_PORT=<set this here if not the default>"
|
||||||
#- "DEBUG=1"
|
#- "DEBUG=1"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: layersapp
|
|
||||||
layersweb:
|
layersweb:
|
||||||
depends_on:
|
depends_on:
|
||||||
- layersapp
|
- layersapp
|
||||||
|
@ -48,11 +46,9 @@ services:
|
||||||
- certbotwww:/var/www/certbot:z
|
- certbotwww:/var/www/certbot:z
|
||||||
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: layersweb
|
|
||||||
layersrabbit:
|
layersrabbit:
|
||||||
image: rabbitmq:alpine
|
image: rabbitmq:alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: layersrabbit
|
|
||||||
environment:
|
environment:
|
||||||
- "RABBITMQ_DEFAULT_USER=guest"
|
- "RABBITMQ_DEFAULT_USER=guest"
|
||||||
- "RABBITMQ_DEFAULT_PASS=guest"
|
- "RABBITMQ_DEFAULT_PASS=guest"
|
||||||
|
@ -76,14 +72,12 @@ services:
|
||||||
#- "EMAIL_PORT=<set this here if not the default>"
|
#- "EMAIL_PORT=<set this here if not the default>"
|
||||||
#- "DEBUG=1"
|
#- "DEBUG=1"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: layerscelery
|
|
||||||
command: /usr/local/bin/celery -A layerindex.tasks worker --loglevel=info --workdir=/opt/layerindex
|
command: /usr/local/bin/celery -A layerindex.tasks worker --loglevel=info --workdir=/opt/layerindex
|
||||||
#layerscertbot:
|
#layerscertbot:
|
||||||
# image: certbot/certbot
|
# image: certbot/certbot
|
||||||
# volumes:
|
# volumes:
|
||||||
# - ./docker/certs:/opt/cert
|
# - ./docker/certs:/opt/cert
|
||||||
# - certbotwww:/var/www/certbot:z
|
# - certbotwww:/var/www/certbot:z
|
||||||
# container_name: layerscertbot
|
|
||||||
# entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|
# entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user