Added: Readme

Added: Restart policy
This commit is contained in:
tanshu
2020-04-20 18:13:06 +05:30
parent 518871ff16
commit fc8a7795e6
10 changed files with 89 additions and 4 deletions

View File

@ -3,6 +3,9 @@ server {
listen 80;
server_name {{ http_host }};
# set max upload size
client_max_body_size 10G;
location / {
proxy_set_header Host $host:$server_port;

View File

@ -31,15 +31,16 @@
name: "{{ container_name }}"
image: "{{ container_image }}"
state: started
restart_policy: "unless-stopped"
env:
POSTGRES_DB: "{{ db_name }}"
POSTGRES_USER: "{{ db_user }}"
POSTGRES_PASSWORD: "{{ db_pass }}"
POSTGRES_HOST: "{{ db_host }}"
REDIS_HOST: "redis"
# REDIS_HOST: "redis"
links:
- "postgres:db"
- "redis:redis"
# - "redis:redis"
published_ports:
- "9000:9000"
volumes:
@ -50,6 +51,7 @@
name: cloud-web
image: nextcloud-web
state: started
restart_policy: "unless-stopped"
links:
- "cloud:app"
published_ports:

View File

@ -3,7 +3,7 @@ http_host: "cloud.hopsngrains.com"
http_conf: "cloud.hopsngrains.com.conf"
container_name: cloud
container_image: nextcloud:fpm-alpine
container_image: nextcloud:fpm
db_name: "nextcloud"
db_user: "postgres"