This repository has been archived on 2021-12-24. You can view files and clone it, but cannot push or open issues/pull-requests.
self-hosting/nginx/docker-compose.yml

28 lines
583 B
YAML
Raw Permalink Normal View History

2021-04-23 16:26:32 +02:00
version: '2.4'
2021-01-04 14:27:32 +01:00
services:
2021-01-05 13:26:59 +01:00
app:
2021-04-23 16:26:32 +02:00
build: './nginx'
2021-01-04 14:27:32 +01:00
image: 'nginx-certbot:stable-alpine'
2021-04-23 16:34:14 +02:00
restart: 'always'
2021-01-05 13:26:59 +01:00
2021-04-23 16:26:32 +02:00
env_file:
- '.env'
2021-01-05 13:26:59 +01:00
networks:
- 'nginx'
2021-01-04 14:27:32 +01:00
ports:
- '$HTTP_PORT:$HTTP_PORT'
- '$HTTPS_PORT:$HTTPS_PORT'
2021-01-04 14:27:32 +01:00
volumes:
2021-01-05 14:28:58 +01:00
- './nginx.conf:/etc/nginx/nginx.conf'
- './sites-enabled:/etc/nginx/sites-enabled'
- './templates:/etc/nginx/templates'
- 'certs:/etc/letsencrypt'
2021-01-04 14:27:32 +01:00
networks:
nginx:
2021-01-05 13:26:59 +01:00
external: true
2021-01-04 14:27:32 +01:00
volumes:
certs: