services: db: image: mariadb:11 volumes: - imf_db:/var/lib/mysql - ./db/init.sql:/docker-entrypoint-initdb.d/init.sql:ro ports: - "3306:3306" env_file: - .env environment: TZ: "${TZ:-Europe/London}" web: build: . volumes: - ./web:/var/www/html ports: - "8000:80" env_file: - .env environment: TZ: "${TZ:-Europe/London}" depends_on: - db worker: build: context: ./python dockerfile: Dockerfile env_file: - .env environment: TZ: "${TZ:-Europe/London}" depends_on: - db restart: unless-stopped volumes: imf_db: