version: '3' services: map: build: . links: - db:db - cache:cache - mailhog:mail volumes: - .containers/map/static:/app/static - .containers/map/gunicorn.sock:/app/gunicorn.sock - ./apps:/app/apps - ./ojusomap:/app/ojusomap - ./support:/app/support ports: - 8000:8000 env_file: - ./local.env command: /bin/sh -c "python3 manage.py collectstatic --noinput ; python3 manage.py runserver 0.0.0.0:8000" db: image: mdillon/postgis:9.6-alpine volumes: - .containers/db:/var/lib/postgresql/data - ./support/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d ports: - "127.0.0.1:5432:5432" env_file: - ./local.env mailhog: image: mailhog/mailhog ports: - 1025:1025 - 8025:8025 cache: image: memcached:1.4 volumes: weblate-data: