Configure services to use nginx-proxy and external_services network

This commit is contained in:
Jesper Hess 2018-06-24 15:17:57 +02:00
parent d5d1e3e8cc
commit a995b6d551
Signed by: graffen
GPG key ID: 351A89E40D763F0F
2 changed files with 20 additions and 6 deletions

View file

@ -2,7 +2,8 @@ version: "2.3"
networks: networks:
gitea: gitea:
external: false external_services:
external: true
services: services:
server: server:
@ -10,9 +11,12 @@ services:
environment: environment:
- USER_UID=1000 - USER_UID=1000
- USER_GID=1000 - USER_GID=1000
- VIRTUAL_HOST=gitea.local
- VIRTUAL_PORT=3000
restart: always restart: always
networks: networks:
- gitea - gitea
- external_services
volumes: volumes:
- gitea:/data - gitea:/data
ports: ports:

View file

@ -8,11 +8,10 @@ services:
environment: environment:
- POSTGRES_DB=nextcloud - POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud - POSTGRES_USER=nextcloud
networks:
- nextcloud
app: app:
image: nextcloud image: nextcloud
ports:
- 8080:80
volumes: volumes:
- nextcloud:/var/www/html - nextcloud:/var/www/html
restart: always restart: always
@ -21,8 +20,19 @@ services:
- POSTGRES_PASSWORD=hest - POSTGRES_PASSWORD=hest
- POSTGRES_DB=nextcloud - POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud - POSTGRES_USER=nextcloud
- VIRTUAL_HOST=nextcloud.local
depends_on: depends_on:
- db - db
ports:
- "80"
networks:
- nextcloud
- external_services
volumes: volumes:
nextcloud: nextcloud:
db: db:
networks:
external_services:
external: true
nextcloud: