2022-07-18 12:43:16 +00:00
|
|
|
version: '2'
|
|
|
|
name: nginx
|
|
|
|
services:
|
|
|
|
nginx:
|
2023-05-05 07:19:49 +00:00
|
|
|
image: nginx:1.24.0-alpine
|
2022-07-18 12:43:16 +00:00
|
|
|
container_name: nginx
|
|
|
|
networks:
|
|
|
|
- mynetwork
|
|
|
|
volumes:
|
|
|
|
- nginx-config:/etc/nginx
|
|
|
|
- letsencrypt:/etc/letsencrypt
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
nginx-config:
|
|
|
|
letsencrypt:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
mynetwork:
|
|
|
|
external: true
|