42 lines
981 B
YAML
42 lines
981 B
YAML
|
services:
|
||
|
nginx:
|
||
|
image: nginx:alpine
|
||
|
container_name: nginx
|
||
|
restart: unless-stopped
|
||
|
ports:
|
||
|
- "80:80"
|
||
|
- "443:443"
|
||
|
volumes:
|
||
|
- ./nginx/conf.d:/etc/nginx/conf.d
|
||
|
- ./html:/usr/share/nginx/html
|
||
|
- ./certbot/www:/var/www/certbot
|
||
|
- ./certbot/conf:/etc/letsencrypt
|
||
|
networks:
|
||
|
- web-network
|
||
|
depends_on:
|
||
|
- certbot
|
||
|
- port-checker
|
||
|
|
||
|
certbot:
|
||
|
image: certbot/certbot
|
||
|
container_name: certbot
|
||
|
volumes:
|
||
|
- ./certbot/www:/var/www/certbot
|
||
|
- ./certbot/conf:/etc/letsencrypt
|
||
|
networks:
|
||
|
- web-network
|
||
|
command: certonly --webroot --webroot-path=/var/www/certbot --email p.keier@beyerstedt-it.de --agree-tos --no-eff-email --force-renewal -d garde-studios.de -d www.garde-studios.de
|
||
|
|
||
|
port-checker:
|
||
|
container_name: port-checker
|
||
|
build: ./api
|
||
|
ports:
|
||
|
- "8000:8000"
|
||
|
networks:
|
||
|
- web-network
|
||
|
restart: unless-stopped
|
||
|
|
||
|
networks:
|
||
|
web-network:
|
||
|
driver: bridge
|