-
Notifications
You must be signed in to change notification settings - Fork 183
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
Error while removing container with remote Docker context #22
Comments
I'm unable to reproduce this. Am I doing it right?
Please provide your |
I'm using multiple compose files. Here are two of them: version: '3.8'
services:
web:
build:
context: .
args:
SECRET_KEY: ${SECRET_KEY:?}
image: spellbook-backend
expose:
- 8000
depends_on:
- db
volumes:
- static_volume:/home/app/web/staticfiles:rw
environment:
SQL_ENGINE: django.db.backends.postgresql
SQL_DATABASE: spellbook_db_prod
SQL_USER: ${DB_USER:?}
SQL_PASSWORD: ${DB_PASSWORD:?}
SQL_HOST: db
SQL_PORT: 5432
DATABASE: postgres
restart: always
nginx:
build:
context: ./nginx
target: base
image: spellbook-nginx
ports:
- 80:80
depends_on:
- web
volumes:
- static_volume:/home/app/web/staticfiles:ro
restart: always
db:
image: postgres:14-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
expose:
- 5432
environment:
PGPORT: 5432
POSTGRES_USER: ${DB_USER:?}
POSTGRES_PASSWORD: ${DB_PASSWORD:?}
POSTGRES_DB: spellbook_db_prod
restart: always
volumes:
static_volume:
postgres_data: version: '3.8'
services:
db-backups:
image: eeshugerman/postgres-backup-s3:14
depends_on:
- db
environment:
SCHEDULE: '@daily'
S3_REGION: ${AWS_S3_REGION:?}
S3_ACCESS_KEY_ID: ${AWS_S3_ACCESS_KEY_ID:?}
S3_SECRET_ACCESS_KEY: ${AWS_S3_SECRET_ACCESS_KEY:?}
S3_BUCKET: ${AWS_S3_BUCKET:?}
S3_PREFIX: backup
POSTGRES_BACKUP_ALL: 'false'
POSTGRES_HOST: db
POSTGRES_DATABASE: spellbook_db_prod
POSTGRES_USER: ${DB_USER:?}
POSTGRES_PASSWORD: ${DB_PASSWORD:?}
POSTGRES_EXTRA_OPTS: ''
restart: always |
Hi, sorry for the slow response. I don't think this is related, but I'll note I don't recognize the Are you able to reproduce the issue with plain Docker Compose on a local machine? I don't entirely understand the error message you provided -- why does it have a URL on it? |
I'm not. I'm using a Docker context on a remote machine (hence the url). Idk why it starts with the example domain. |
Containers running this image throw errors when trying to remove them through
docker compose down
:Maybe it lacks a proper SIGTERM handling?
The text was updated successfully, but these errors were encountered: