45 lines
940 B
YAML
45 lines
940 B
YAML
|
version: '3'
|
||
|
services:
|
||
|
|
||
|
api:
|
||
|
build: .
|
||
|
ports:
|
||
|
- '8000:8000'
|
||
|
|
||
|
nginx:
|
||
|
image: nginx
|
||
|
container_name: my-nginx
|
||
|
restart: always
|
||
|
volumes:
|
||
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
||
|
- ./nginx/robots.txt:/var/www/html/robots.txt
|
||
|
- etc-letsencrypt:/etc/letsencrypt
|
||
|
- www-html:/var/www/html
|
||
|
ports:
|
||
|
- "80:80"
|
||
|
- "443:443"
|
||
|
networks:
|
||
|
- api_default
|
||
|
|
||
|
certbot:
|
||
|
image: certbot/certbot
|
||
|
container_name: certbot
|
||
|
volumes:
|
||
|
- etc-letsencrypt:/etc/letsencrypt
|
||
|
- www-html:/var/www/html
|
||
|
depends_on:
|
||
|
- nginx
|
||
|
command: certonly --webroot -w /var/www/html --email me@abakuka.ru -d nsfw.wizardstech.ru --cert-name=nsfw.wizardstech.ru --key-type rsa --agree-tos
|
||
|
ports:
|
||
|
- "6000:80"
|
||
|
networks:
|
||
|
- api_default
|
||
|
|
||
|
volumes:
|
||
|
some_volume:
|
||
|
www-html:
|
||
|
etc-letsencrypt:
|
||
|
|
||
|
networks:
|
||
|
api_default:
|
||
|
external: true
|