A working commit on all projects

This commit is contained in:
gri38 2022-04-03 12:01:34 +02:00
parent 672aaf9f12
commit 18da977b32
6 changed files with 80 additions and 9 deletions

4
.gitignore vendored
View File

@ -1,2 +1,4 @@
django-joplin-vieweb/
joplin-terminal-xapi/
joplin-terminal-xapi/
joplin-vieweb-certbot/
joplin-vieweb-nginx/

View File

@ -2,5 +2,7 @@
"files.exclude": {
"django-joplin-vieweb": true,
"joplin-terminal-xapi": true,
"joplin-vieweb-certbot": true,
"joplin-vieweb-nginx": true,
},
}

View File

@ -1,5 +1,5 @@
#/bin/sh
for project in joplin-terminal-xapi django-joplin-vieweb; do
for project in joplin-terminal-xapi django-joplin-vieweb joplin-vieweb-nginx joplin-vieweb-certbot; do
git clone git@github.com:joplin-vieweb/${project}.git
done

25
docker-compose-test.yml Normal file
View File

@ -0,0 +1,25 @@
version: '3.4'
services:
certbot:
image: certbot/certbot:latest
depends_on:
- joplin-vieweb-nginx
volumes:
- certbot_www:/var/www/certbot/:rw
- certbot_conf:/etc/letsencrypt/:rw
joplin-vieweb-nginx:
build: ./joplin-vieweb-nginx
ports:
- 80:80
- 443:443
environment:
- server_name=guillot.fr.nf
volumes:
- certbot_www:/var/www/certbot/:ro
- certbot_conf:/etc/letsencrypt/:ro
volumes:
certbot_www:
certbot_conf:

View File

@ -1,37 +1,71 @@
version: '3.4'
x-common-variables: &common-variables
DOMAIN: your_domain.com
DOMAIN_IP: 12.34.56.78
CERT_MAIL: webmaster@your_domain.com
services:
django-joplin-vieweb:
# image: django-joplin-vieweb
build: ./django-joplin-vieweb
# command: ["/bin/sh"]
# stdin_open: true
# tty: true
#stdin_open: true
#tty: true
depends_on:
- joplin-terminal-xapi
ports:
- 80:80
environment:
<<: *common-variables
restart: unless-stopped
volumes:
- joplin:/root/.config/joplin:ro
- joplin-vieweb:/root/.config/joplin-vieweb
- certbot_www:/var/www/certbot/:ro
networks:
- joplin-net
joplin-terminal-xapi:
image: joplin-terminal-xapi
# ports:
# - "8080:8080"
# - "8081:8081"
restart: unless-stopped
volumes:
- joplin:/root/.config/joplin
networks:
- joplin-net
joplin-vieweb-certbot:
build: ./joplin-vieweb-certbot
environment:
<<: *common-variables
# command: ["/bin/bash"]
stdin_open: true
tty: true
depends_on:
- joplin-vieweb-nginx
volumes:
- certbot_www:/var/www/certbot/:rw
- certbot_conf:/etc/letsencrypt/:rw
joplin-vieweb-nginx:
build: ./joplin-vieweb-nginx
# command: ["/bin/sh"]
# stdin_open: true
# tty: true
ports:
- 80:80
- 443:443
environment:
<<: *common-variables
volumes:
- certbot_www:/var/www/certbot/:ro
- certbot_conf:/etc/letsencrypt/:ro
networks:
- joplin-net
volumes:
joplin:
joplin-vieweb:
certbot_www:
certbot_conf:
networks:
joplin-net: {}

View File

@ -8,6 +8,14 @@
"name": "joplin-terminal-xapi",
"path": "joplin-terminal-xapi"
},
{
"name": "joplin-vieweb-certbot",
"path": "joplin-vieweb-certbot"
},
{
"name": "joplin-vieweb-nginx",
"path": "joplin-vieweb-nginx"
},
{
"name": "jolpin-vieweb",
"path": "."