services: frontend: image: guamulo/shadowmere-frontend-njs restart: always ports: - "8000:80" shadowmere: image: guamulo/shadowmere restart: always env_file: - .env depends_on: - db ports: - "8001:8001" - "8002-8007:8002-8007" build: context: . # I'm using this shortcut since Shadowtest runs in the same network as the host extra_hosts: - "shadowtest.akiel.dev:10.0.0.38" apply_migrations: image: guamulo/shadowmere env_file: - .env restart: on-failure depends_on: - db - shadowmere command: - python - manage.py - migrate collectstatics: image: guamulo/shadowmere env_file: - .env restart: on-failure depends_on: - db - shadowmere command: - python - manage.py - collectstatic - --noinput create_superuser: image: guamulo/shadowmere env_file: - .env restart: on-failure depends_on: - db - apply_migrations command: - python - manage.py - initadmin db: image: postgres:17-alpine restart: always env_file: - .env volumes: - shadowmere_data_17:/var/lib/postgresql/data environment: - POSTGRES_USER=shadowmere - POSTGRES_DB=shadowmere redis: image: redis:alpine restart: always huey: deploy: resources: limits: cpus: "2" image: guamulo/shadowmere restart: always command: python manage.py run_huey env_file: - .env depends_on: - redis - db - apply_migrations # I'm using this shortcut since Shadowtest runs in the same network as the host extra_hosts: - "shadowtest.akiel.dev:10.0.0.38" volumes: shadowmere_data: shadowmere_data_17: