-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 1.26 KB
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (34 loc) · 1.26 KB
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
version: '3.8'
services:
nginx:
container_name: nginx_master
image: nginx:alpine
restart: always
ports:
- "8080:80"
- "443:443"
# command: /bin/sh -c "mkdir -p /etc/nginx/ssl/ && apk add screen nginx && screen -d -m nginx -g 'daemon on;'"
volumes:
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./config/nginx/servers-nginx.conf:/etc/nginx/conf.d/servers-nginx.conf
- /etc/letsencrypt/live/thibault-peronno.fr/fullchain.pem:/etc/nginx/ssl/fullchain.pem
- /etc/letsencrypt/live/thibault-peronno.fr/privkey.pem:/etc/nginx/ssl/privkey.pem
- web_to_do_list_dist_volume:/var/www/html/interface-to-do-list
networks:
- to_do_list_default
- web_to_do_list_default
- server-projet-botanik_default
# command: /bin/sh -c "mkdir -p /etc/ssl/ && nginx -g 'daemon off;'"
networks:
to_do_list_default:
external: true
web_to_do_list_default:
external: true
server-projet-botanik_default:
external: true
volumes:
web_to_do_list_dist_volume:
external: true
# Make sure all paths are correct and accessible
# Set the correct permissions if running into issues, e.g., sudo chown -R $USER:$USER /path/to/volume
# Check SELinux settings if running into permission issues on AlmaLinux