x-app: &app image: cihar-websites:local volumes: - state:/data services: migrate: <<: *app build: . command: ["sh", "-ec", "python manage.py migrate --noinput && python manage.py seedsample"] healthcheck: disable: true website: <<: *app depends_on: migrate: condition: service_completed_successfully environment: DJANGO_SETTINGS_MODULE: config.settings.website CIHAR_BLOG_ORIGIN: http://localhost:8001 ports: - "127.0.0.1:8000:8000" blog: <<: *app depends_on: migrate: condition: service_completed_successfully environment: DJANGO_SETTINGS_MODULE: config.settings.blog ports: - "127.0.0.1:8001:8000" volumes: state: