-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
28 lines (27 loc) · 1.1 KB
/
docker-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
version: '3'
services:
nginx:
container_name: webserve_ionic.demo.pfouque.fr
image: nginx:alpine
restart: always
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf
- ./www:/usr/share/nginx/html/
working_dir: /usr/share/nginx/html
environment:
- VIRTUAL_HOST=ionic.demo.pfouque.fr # Enviroment variable needed for nginx proxy
- LETSENCRYPT_HOST=ionic.demo.pfouque.fr # Enviroment variables needed for Let's Encrypt companion
- LETSENCRYPT_EMAIL=pfouque@gmail.com
expose:
- "80" # Expose http port
- "443" # along with https port
networks:
- nginx-proxy # Connect this container to network named nginx-proxy, that will be described below
logging:
driver: json-file
options:
max-size: "10m"
networks:
nginx-proxy:
external:
name: webproxy_nginx-proxy # Reference our network that was created by Docker Compose when we launched our two main containers earlier. Name generated automaticaly. Use `docker network ls` to list all networks and their names.