x-app-base: &app-base build: context: . target: dev args: UID: ${UID:-1000} GID: ${GID:-1000} env_file: - .env environment: DEBUG: "True" volumes: - ./src:/app/src - ./scripts:/app/scripts - ./var/media:/app/var/media - ./var/static:/app/var/static - ./var/counters/:/app/var/counters - ${LIBRARIAN:-/nonexistent}:/${LIBRARIAN:+edita}ble/librarian - ipython:/app/.ipython depends_on: - db - redis - memcached entrypoint: /app/scripts/entrypoint.sh services: web: <<: *app-base command: ./manage.py runserver 0.0.0.0:8000 celery: <<: *app-base command: celery -A wolnelektury worker -l info db: build: context: . target: postgres env_file: - .env volumes: - ./var/postgresql-data/:/var/lib/postgresql/ redis: image: redis:8-alpine memcached: image: memcached:1.6-alpine nginx: build: context: . target: nginx args: UID: ${UID:-1000} GID: ${GID:-1000} ports: - "127.0.0.1:8101:80" volumes: - ./var/media:/app/var/media:ro - ./scripts/nginx.conf:/etc/nginx/conf.d/default.conf:ro depends_on: - web volumes: ipython: