comply with abra, movie nginx to "proxy" service and liberaforms to "app" service
This commit is contained in:
70
compose.yml
70
compose.yml
@ -4,36 +4,7 @@ version: "3.8"
|
||||
services:
|
||||
|
||||
app:
|
||||
image: nginx:stable
|
||||
networks:
|
||||
- internal
|
||||
- proxy
|
||||
volumes:
|
||||
- uploads:/liberaforms/uploads:ro
|
||||
- static:/liberaforms/static:ro
|
||||
configs:
|
||||
- source: nginx_conf
|
||||
mode: 555
|
||||
target: /etc/nginx/conf.d/default.conf
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
- "coop-cloud.${STACK_NAME}.version=0.6.0+4.6.1"
|
||||
healthcheck:
|
||||
test: [ "CMD", "curl", "-f", "http://localhost" ]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
start_period: 1m
|
||||
|
||||
forms:
|
||||
image: fung.uy/mycosystems/liberaforms:v4.6.1
|
||||
image: fung.uy/mycosystems/liberaforms:v4.7.0
|
||||
configs:
|
||||
- source: entrypoint
|
||||
mode: 555
|
||||
@ -88,10 +59,11 @@ services:
|
||||
- CRYPTO_KEY_VERSION
|
||||
deploy:
|
||||
labels:
|
||||
backupbot.backup: "true"
|
||||
backupbot.backup.volumes.uploads: "true"
|
||||
backupbot.backup.volumes.log: "false"
|
||||
backupbot.backup.volumes.static: "false"
|
||||
- "coop-cloud.${STACK_NAME}.version=0.6.0+4.7.0"
|
||||
- "backupbot.backup=true"
|
||||
- "backupbot.backup.volumes.uploads=true"
|
||||
- "backupbot.backup.volumes.log=false"
|
||||
- "backupbot.backup.volumes.static=false"
|
||||
volumes:
|
||||
- uploads:/app/uploads
|
||||
- log:/app/logs
|
||||
@ -103,6 +75,34 @@ services:
|
||||
networks:
|
||||
- internal
|
||||
|
||||
proxy:
|
||||
image: nginx:stable
|
||||
networks:
|
||||
- internal
|
||||
- proxy
|
||||
volumes:
|
||||
- uploads:/liberaforms/uploads:ro
|
||||
- static:/liberaforms/static:ro
|
||||
configs:
|
||||
- source: nginx_conf
|
||||
mode: 555
|
||||
target: /etc/nginx/conf.d/default.conf
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
healthcheck:
|
||||
test: [ "CMD", "curl", "-f", "http://localhost" ]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
start_period: 1m
|
||||
|
||||
db:
|
||||
image: postgres:17
|
||||
configs:
|
||||
@ -122,7 +122,7 @@ services:
|
||||
labels:
|
||||
backupbot.backup.pre-hook: "/pg_backup.sh backup"
|
||||
backupbot.backup.volumes.db.path: "backup.sql"
|
||||
backupbot.restore.post-hook: '/pg_backup.sh restore'
|
||||
backupbot.restore.post-hook: "/pg_backup.sh restore"
|
||||
volumes:
|
||||
- db:/var/lib/postgresql/data
|
||||
secrets:
|
||||
|
||||
Reference in New Issue
Block a user