-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (35 loc) · 1.14 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
29
30
31
32
33
34
35
36
37
38
version: '3.6'
services:
web:
image: nginx:latest
container_name: web
hostname: pisense-nginx
tty: true
build: ./
networks:
- pisense-network
ports:
- '80:80'
- '443:443'
volumes:
- ./www/:/usr/share/nginx/html
- ./conf/nginx.conf:/etc/nginx/nginx.conf
- ./conf/default.conf:/etc/nginx/conf.d/default.conf
- ./dh-param/dhparam-2048.pem:/etc/ssl/certs/dhparam-2048.pem
- /docker-volumes/etc/letsencrypt/live/camposcasares.be/fullchain.pem:/etc/letsencrypt/live/camposcasares.be/fullchain.pem
- /docker-volumes/etc/letsencrypt/live/camposcasares.be/privkey.pem:/etc/letsencrypt/live/camposcasares.be/privkey.pem
- /docker-volumes/data/letsencrypt:/data/letsencrypt
command: ['nginx', '-g', 'daemon off;']
db:
image: mariadb:latest
container_name: mariadb
hostname: pisense-mariadb
networks:
- pisense-network
ports:
- '3306:3306'
networks:
pisense-network:
driver: bridge
volumes:
www: