I have a docker app that has a nuxt.js app and a strapi app 

this is the docker-compose.yml for one of the docker apps 

```yaml
version: '3'
services:

 nginx:
 build: ./nginx
 ports:
 - "80:80"
 depends\_on:
 - backend
 - frontend
 networks:
 - app\_network
 
 backend:
 build:
 context: ./backend
 ports:
 - "1337:1337"
 environment:
 COMPOSE\_HTTP\_TIMEOUT: 300
 DATABASE\_CLIENT: sqlite
 DATABASE\_NAME: strapi
 DATABASE\_FILENAME: /tmp/data.db
 DATABASE\_HOST: 0.0.0.0
 DATABASE\_PORT: 1337
 DATABASE\_USERNAME: strapi
 DATABASE\_PASSWORD: strapi
 volumes:
 - ./data:/tmp # map local data directory to container
 restart: always
 networks:
 - app\_network

 frontend:
 build:
 context: ./frontend
 ports:
 - 3000:3000
 - 24678:24678
 restart: always
 networks:
 - app\_network
 depends\_on:
 - backend
 environment:
 COMPOSE\_HTTP\_TIMEOUT: 300
 API\_URL: http://backend:1337/api

networks:
 app\_network:
 driver: bridge

```

and this is the nginx.conf INSIDE the docker app

```
events {}

http {
 include /etc/nginx/mime.types;
 default\_type application/octet-stream;
 
 server {
 listen 80;
 server\_name nsd.newtablab.com

 add\_header Content-Security-Policy "default-src 'self'; img-src 'self' https: data: blob:; font-src 'self' https: data:; media-src 'self' https: blob:; script-src 'self' https: 'unsafe-inline' 'unsafe-eval' 'unsafe-hashes'; style-src 'self' https: 'unsafe-inline' 'unsafe-hashes'; connect-src 'self' http: https: ws: https://nsd.newtablab.com http://localhost http://46.254.54.6/; object-src 'self'; frame-src 'self' https:;";
 location / {
 proxy\_pass http://frontend:3000;
 proxy\_http\_version 1.1;
 proxy\_set\_header Upgrade $http\_upgrade;
 proxy\_set\_header Connection 'upgrade';
 proxy\_set\_header Host $host;
 proxy\_cache\_bypass $http\_upgrade;
 }

 location /api {
 proxy\_pass http://backend:1337/api;
 proxy\_http\_version 1.1;
 proxy\_set\_header X-Forwarded-Host $host;
 proxy\_set\_header X-Forwarded-Server $host;
 proxy\_set\_header X-Real-IP $remote\_addr;
 proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for;
 proxy\_set\_header X-Forwarded-Proto $scheme;
 proxy\_set\_header Host $http\_host;
 proxy\_set\_header Upgrade $http\_upgrade;
 proxy\_set\_header Connection "Upgrade";
 proxy\_pass\_request\_headers on;
 }
 
 location /admin {
 proxy\_pass http://backend:1337/admin;
 proxy\_http\_version 1.1;
 proxy\_set\_header X-Forwarded-Host $host;
 proxy\_set\_header X-Forwarded-Server $host;
 proxy\_set\_header X-Real-IP $remote\_addr;
 proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for;
 proxy\_set\_header X-Forwarded-Proto $scheme;
 proxy\_set\_header Host $http\_host;
 proxy\_set\_header Upgrade $http\_upgrade;
 proxy\_set\_header Connection "Upgrade";
 proxy\_pass\_request\_headers on;
 }
 
 location /i18n {
 proxy\_pass http://backend:1337/i18n;
 proxy\_http\_version 1.1;
 proxy\_set\_header X-Forwarded-Host $host;
 proxy\_set\_header X-Forwarded-Server $host;
 proxy\_set\_header X-Real-IP $remote\_addr;
 proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for;
 proxy\_set\_header X-Forwarded-Proto $scheme;
 proxy\_set\_header Host $http\_host;
 proxy\_set\_header Upgrade $http\_upgrade;
 proxy\_set\_header Connection "Upgrade";
 proxy\_pass\_request\_headers on;
 }

 location /content-manager {
 proxy\_pass http://backend:1337/content-manager;
 proxy\_http\_version 1.1;
 proxy\_set\_header X-Forwarded-Host $host;
 proxy\_set\_header X-Forwarded-Server $host;
 proxy\_set\_header X-Real-IP $remote\_addr;
 proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for;
 proxy\_set\_header X-Forwarded-Proto $scheme;
 proxy\_set\_header Host $http\_host;
 proxy\_set\_header Upgrade $http\_upgrade;
 proxy\_set\_header Connection "Upgrade";
 proxy\_pass\_request\_headers on;
 }

 location /users-permissions {
 proxy\_pass http://backend:1337/users-permissions;
 proxy\_http\_version 1.1;
 proxy\_set\_header X-Forwarded-Host $host;
 proxy\_set\_header X-Forwarded-Server $host;
 proxy\_set\_header X-Real-IP $remote\_addr;
 proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for;
 proxy\_set\_header X-Forwarded-Proto $scheme;
 proxy\_set\_header Host $http\_host;
 proxy\_set\_header Upgrade $http\_upgrade;
 proxy\_set\_header Connection "Upgrade";
 proxy\_pass\_request\_headers on;
 }

 location /upload {
 proxy\_pass http://backend:1337/upload;
 proxy\_http\_version 1.1;
 proxy\_set\_header X-Forwarded-Host $host;
 proxy\_set\_header X-Forwarded-Server $host;
 proxy\_set\_header X-Real-IP $remote\_addr;
 proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for;
 proxy\_set\_header X-Forwarded-Proto $scheme;
 proxy\_set\_header Host $http\_host;
 proxy\_set\_header Upgrade $http\_upgrade;
 proxy\_set\_header Connection "Upgrade";
 proxy\_pass\_request\_headers on;
 }
 }
}
```

I want to run it on my ubuntu server with the domain nsd.newtablab.com 
Then I want a second docker app with the same structure running on the same server with the domain www.newstablab.com
I already set my dns records for the domain. 
Can you give me the correct docker and ngnix configrations for such a setup
user