mirror of
https://github.com/rjNemo/villafleurie
synced 2026-06-12 13:26:47 +00:00
update dockercomposeyml with linuxserver
This commit is contained in:
parent
958dfd06c8
commit
03b48e0014
1 changed files with 13 additions and 3 deletions
|
|
@ -19,6 +19,7 @@ services:
|
||||||
|
|
||||||
web: &web
|
web: &web
|
||||||
build: .
|
build: .
|
||||||
|
restart: always
|
||||||
command: bash -c "python manage.py migrate && gunicorn -w 4 villafleurie.wsgi -b 0.0.0.0:8000"
|
command: bash -c "python manage.py migrate && gunicorn -w 4 villafleurie.wsgi -b 0.0.0.0:8000"
|
||||||
volumes:
|
volumes:
|
||||||
- .:/villafleurie
|
- .:/villafleurie
|
||||||
|
|
@ -33,14 +34,23 @@ services:
|
||||||
env_file: prod.env
|
env_file: prod.env
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
build:
|
image: linuxserver/letsencrypt
|
||||||
context: .
|
restart: unless-stopped
|
||||||
dockerfile: nginx/Dockerfile
|
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
|
- 443:443
|
||||||
volumes:
|
volumes:
|
||||||
- static_files:/static_files
|
- static_files:/static_files
|
||||||
- media:/media
|
- media:/media
|
||||||
|
- ./config/letsencrypt:/config
|
||||||
|
# - ./nginx/villafleurie.conf:/config/nginx/site-confs/default
|
||||||
|
environment:
|
||||||
|
- EMAIL=ruidy.nemausat@gmail.com
|
||||||
|
- URL=villafleuriegp.com
|
||||||
|
- VALIDATION=http
|
||||||
|
# - VALIDATION=dns
|
||||||
|
- PUID=1001
|
||||||
|
- PGID=1001
|
||||||
depends_on:
|
depends_on:
|
||||||
- web
|
- web
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue