forked from data.coop/ansible
Configure services to use nginx-proxy and external_services network
This commit is contained in:
parent
d5d1e3e8cc
commit
a995b6d551
|
@ -2,7 +2,8 @@ version: "2.3"
|
|||
|
||||
networks:
|
||||
gitea:
|
||||
external: false
|
||||
external_services:
|
||||
external: true
|
||||
|
||||
services:
|
||||
server:
|
||||
|
@ -10,9 +11,12 @@ services:
|
|||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- VIRTUAL_HOST=gitea.local
|
||||
- VIRTUAL_PORT=3000
|
||||
restart: always
|
||||
networks:
|
||||
- gitea
|
||||
- external_services
|
||||
volumes:
|
||||
- gitea:/data
|
||||
ports:
|
||||
|
|
|
@ -8,11 +8,10 @@ services:
|
|||
environment:
|
||||
- POSTGRES_DB=nextcloud
|
||||
- POSTGRES_USER=nextcloud
|
||||
|
||||
networks:
|
||||
- nextcloud
|
||||
app:
|
||||
image: nextcloud
|
||||
ports:
|
||||
- 8080:80
|
||||
volumes:
|
||||
- nextcloud:/var/www/html
|
||||
restart: always
|
||||
|
@ -21,8 +20,19 @@ services:
|
|||
- POSTGRES_PASSWORD=hest
|
||||
- POSTGRES_DB=nextcloud
|
||||
- POSTGRES_USER=nextcloud
|
||||
- VIRTUAL_HOST=nextcloud.local
|
||||
depends_on:
|
||||
- db
|
||||
ports:
|
||||
- "80"
|
||||
networks:
|
||||
- nextcloud
|
||||
- external_services
|
||||
volumes:
|
||||
nextcloud:
|
||||
db:
|
||||
|
||||
networks:
|
||||
external_services:
|
||||
external: true
|
||||
nextcloud:
|
Loading…
Reference in a new issue