change into its own docker
This commit is contained in:
parent
cc3fa85a4f
commit
840d773759
@ -1,27 +1,14 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
build: .
|
build: .
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
ports:
|
||||||
- app-network
|
- "3001:80"
|
||||||
|
networks:
|
||||||
|
- app-network
|
||||||
|
|
||||||
nginx:
|
networks:
|
||||||
image: nginx:alpine
|
app-network:
|
||||||
ports:
|
driver: bridge
|
||||||
- "80:80"
|
|
||||||
- "443:443"
|
|
||||||
volumes:
|
|
||||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
||||||
- /etc/letsencrypt:/etc/letsencrypt:ro
|
|
||||||
- /var/www/certbot:/var/www/certbot:ro
|
|
||||||
depends_on:
|
|
||||||
- app
|
|
||||||
restart: unless-stopped
|
|
||||||
networks:
|
|
||||||
- app-network
|
|
||||||
|
|
||||||
networks:
|
|
||||||
app-network:
|
|
||||||
driver: bridge
|
|
||||||
Loading…
Reference in New Issue
Block a user