Adding nginx-proxy, db services
This commit is contained in:
parent
ec1ec82518
commit
7795ef9605
@ -15,6 +15,34 @@ services:
|
|||||||
- POSTGRES_HOST=db:5432
|
- POSTGRES_HOST=db:5432
|
||||||
- REDIS_HOST=redis
|
- REDIS_HOST=redis
|
||||||
- NEXTCLOUD_TRUSTED_DOMAINS="{{ inventory_hostname | default('ansible_undefined_host') }}"
|
- NEXTCLOUD_TRUSTED_DOMAINS="{{ inventory_hostname | default('ansible_undefined_host') }}"
|
||||||
|
env_file:
|
||||||
|
- .db.env
|
||||||
|
networks:
|
||||||
|
podman:
|
||||||
|
aliases:
|
||||||
|
- "nextcloud.local"
|
||||||
|
|
||||||
|
nginx-proxy:
|
||||||
|
image: nginxproxy/nginx-proxy:latest
|
||||||
|
ports:
|
||||||
|
- 8080:80 # change to 80:80 when the shop is ready to go live
|
||||||
|
- 4443:443 # change to 80:80 when the shop is ready to go live
|
||||||
|
networks:
|
||||||
|
podman:
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- ~/nginx/certs:/etc/nginx/certs
|
||||||
|
- ~/nginx/html:/usr/share/nginx/html
|
||||||
|
- /run/user/{{ getent_passwd[item.name][2] }}/podman/podman.sock:/tmp/docker.sock:ro
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: postgres:alpine
|
||||||
|
hostname: db
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- db:/var/lib/postgresql/data:Z
|
||||||
|
env_file:
|
||||||
|
- .db.env
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user