После ребута заработало:
version: '3.8'
services:
nginx:
build:
context: ./nginx
container_name: nginx
image: nginx
links:
- uwsgi
- uwsgi2
volumes_from:
- uwsgi
- uwsgi2
ports:
- "80:80"
- "443:443"
uwsgi:
build:
context: ./Site
container_name: uwsgi
environment:
SECRETKEY: "django-SECRETKEY"
volumes:
- ./nginx:/opt/conf
- ./Site:/opt/app/Site
expose:
- "8001"
uwsgi2:
build:
context: ./Site2
container_name: uwsgi2
environment:
SECRETKEY: "django-SECRETKEY2"
volumes:
- ./nginx:/opt/conf
- ./Site2:/opt/app/Site2
expose:
- "8002"