fix issue with docker networking declaration that resulted in services not connecting to each other
parent
cb3a5ff7a9
commit
4efea72d64
|
@ -3,22 +3,21 @@ version: "3.3"
|
||||||
services:
|
services:
|
||||||
server:
|
server:
|
||||||
image: gitea/gitea:latest
|
image: gitea/gitea:latest
|
||||||
restart: always
|
# restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- $GITEA_DATADIR:/data
|
- $GITEA_DATADIR:/data
|
||||||
- $GITEA_CONFIGDIR:/etc/gitea
|
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- $CERTS_DIR/fullchain.pem:/var/lib/gitea/cert.pem
|
|
||||||
- $CERTS_DIR/privkey.pem:/var/lib/gitea/privkey.pem
|
|
||||||
expose:
|
expose:
|
||||||
- "3000"
|
- "3000"
|
||||||
- "2222"
|
- "2222"
|
||||||
environment:
|
environment:
|
||||||
- VIRTUAL_HOST=gitea.$LETSENCRYPT_DOMAIN
|
- VIRTUAL_HOST=git.emamaker.com
|
||||||
- VIRTUAL_PORT=3000
|
- VIRTUAL_PORT=3000
|
||||||
- LETSENCRYPT_HOST=gitea.$LETSENCRYPT_DOMAIN
|
- LETSENCRYPT_HOST=git.emamaker.com
|
||||||
- LETSENCRYPT_EMAIL=$LETSENCRYPT_EMAIL
|
- LETSENCRYPT_EMAIL=emamaker0@gmail.com
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -3,7 +3,7 @@ version: '2'
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: mariadb:10.5
|
image: mariadb:10.5
|
||||||
restart: always
|
# restart: always
|
||||||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
||||||
volumes:
|
volumes:
|
||||||
- $NEXTCLOUD_DB_DATADIR:/var/lib/mysql
|
- $NEXTCLOUD_DB_DATADIR:/var/lib/mysql
|
||||||
|
@ -12,10 +12,12 @@ services:
|
||||||
- MYSQL_PASSWORD=$NEXTCLOUD_MYSQL_PWD
|
- MYSQL_PASSWORD=$NEXTCLOUD_MYSQL_PWD
|
||||||
- MYSQL_DATABASE=nextcloud
|
- MYSQL_DATABASE=nextcloud
|
||||||
- MYSQL_USER=nextcloud
|
- MYSQL_USER=nextcloud
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
|
||||||
app:
|
app:
|
||||||
image: nextcloud:latest
|
image: nextcloud:latest
|
||||||
restart: always
|
# restart: always
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
- "443"
|
- "443"
|
||||||
|
@ -26,14 +28,17 @@ services:
|
||||||
environment:
|
environment:
|
||||||
# - NEXTCLOUD_ADMIN_USER=testuser #this is just for initial setup, and the user can be delete afterwards
|
# - NEXTCLOUD_ADMIN_USER=testuser #this is just for initial setup, and the user can be delete afterwards
|
||||||
# - NEXTCLOUD_ADMIN_PASSWORD=test123
|
# - NEXTCLOUD_ADMIN_PASSWORD=test123
|
||||||
- NEXTCLOUD_TRUSTED_DOMAINS=nextcloud.emamaker.com emamaker.com
|
- NEXTCLOUD_TRUSTED_DOMAINS=nextcloud.emamaker.com emamaker.com files.emamaker.com
|
||||||
- MYSQL_PASSWORD=$NEXTCLOUD_MYSQL_PWD
|
- MYSQL_PASSWORD=$NEXTCLOUD_MYSQL_PWD
|
||||||
- MYSQL_DATABASE=nextcloud
|
- MYSQL_DATABASE=nextcloud
|
||||||
- MYSQL_USER=nextcloud
|
- MYSQL_USER=nextcloud
|
||||||
- MYSQL_HOST=db
|
- MYSQL_HOST=db
|
||||||
- VIRTUAL_HOST=nextcloud.$LETSENCRYPT_DOMAIN
|
- VIRTUAL_HOST=files.$LETSENCRYPT_DOMAIN
|
||||||
- LETSENCRYPT_HOST=nextcloud.$LETSENCRYPT_DOMAIN
|
- VIRTUAL_PORT=80
|
||||||
|
- LETSENCRYPT_HOST=files.$LETSENCRYPT_DOMAIN
|
||||||
- LETSENCRYPT_EMAIL=$LETSENCRYPT_EMAIL
|
- LETSENCRYPT_EMAIL=$LETSENCRYPT_EMAIL
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -14,7 +14,9 @@ services:
|
||||||
- "/etc/nginx/conf.d"
|
- "/etc/nginx/conf.d"
|
||||||
- "/etc/nginx/vhost.d"
|
- "/etc/nginx/vhost.d"
|
||||||
- "/usr/share/nginx/html"
|
- "/usr/share/nginx/html"
|
||||||
- $CERTS_DIR:/etc/nginx/certs:ro"
|
- "$CERTS_DIR:/etc/nginx/certs:ro"
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
|
||||||
nginx-gen:
|
nginx-gen:
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -26,6 +28,8 @@ services:
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- nginx
|
- nginx
|
||||||
entrypoint: /usr/local/bin/docker-gen -notify-sighup nginx -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
|
entrypoint: /usr/local/bin/docker-gen -notify-sighup nginx -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
|
||||||
letsencrypt-nginx-proxy-companion:
|
letsencrypt-nginx-proxy-companion:
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -38,6 +42,8 @@ services:
|
||||||
- "$CERTS_DIR:/etc/nginx/certs:rw"
|
- "$CERTS_DIR:/etc/nginx/certs:rw"
|
||||||
environment:
|
environment:
|
||||||
- NGINX_DOCKER_GEN_CONTAINER=nginx-gen
|
- NGINX_DOCKER_GEN_CONTAINER=nginx-gen
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue