forked from beigi-reza/atlassian-software
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx-compose.yml
executable file
·31 lines (29 loc) · 1.09 KB
/
nginx-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
#
# _ __ _ ____
# / | / /___ _(_)___ _ __ / __ \___ _ _____ _____________ ____ _________ _ ____ __
# / |/ / __ `/ / __ \| |/_/_____/ /_/ / _ \ | / / _ \/ ___/ ___/ _ \ / __ \/ ___/ __ \| |/_/ / / /
# / /| / /_/ / / / / /> </_____/ _, _/ __/ |/ / __/ / (__ ) __/ / /_/ / / / /_/ /> </ /_/ /
# /_/ |_/\__, /_/_/ /_/_/|_| /_/ |_|\___/|___/\___/_/ /____/\___/ / .___/_/ \____/_/|_|\__, /
# /____/ /_/ /____/
# Docker Compose for Run Nginx
# Need "my-net" Network for Run this File
# docker network create --driver bridge --subnet=150.50.50.0/24 my-net
version: "3.4"
services:
nginx:
restart: always
image: nginx:latest
container_name: nginx
hostname: nginx
networks:
- my-net
volumes:
- ./nginx:/etc/nginx/conf.d:ro
- ./ssl:/etc/nginx/ssl:ro
ports:
- 80:80
- 443:443
networks:
my-net:
external: true