generated from coop-cloud/example
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.0 KiB
79 lines
2.0 KiB
version: "3.8"
|
|
services:
|
|
app:
|
|
image: statuspal/statuspal:1.8.0
|
|
depends_on:
|
|
- db
|
|
volumes:
|
|
- uploads:/statushq/uploads
|
|
command: ["/statushq/docker/up.sh", "postgres"]
|
|
#entrypoint: ["tail", "-f", "/dev/null"]
|
|
networks:
|
|
- proxy
|
|
- internal
|
|
environment:
|
|
- SECRET_KEY_BASE
|
|
- NODE_COOKIE
|
|
- MG_DOMAIN
|
|
- MG_API_KEY
|
|
- URL_HOST=${DOMAIN}
|
|
- URL_SCHEMA=https
|
|
- URL_PORT=443
|
|
- DB_NAME=statushq
|
|
- DB_USERNAME=postgres
|
|
- DB_HOSTNAME=db
|
|
- DB_PASSWORD
|
|
- LOG_LEVEL
|
|
- SP_SUBDOMAINS
|
|
- NODE_IP
|
|
- C_TITLE
|
|
- C_DESCRIPTION
|
|
configs:
|
|
- source: entrypoint_conf
|
|
target: /statushq/docker/up.sh
|
|
mode: 0555
|
|
secrets:
|
|
- db_password
|
|
deploy:
|
|
restart_policy:
|
|
condition: on-failure
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=proxy"
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=4000"
|
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
|
- coop-cloud.${STACK_NAME}.app.version=1.8.0-77e40588
|
|
db:
|
|
image: postgres:9.5
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD_FILE=/run/secrets/db_password
|
|
- POSTGRES_DB=statushq
|
|
networks:
|
|
- internal
|
|
volumes:
|
|
- postgres:/var/lib/postgresql/data
|
|
secrets:
|
|
- db_password
|
|
deploy:
|
|
labels:
|
|
- coop-cloud.${STACK_NAME}.db.version=9.5-24f2fd74
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
internal:
|
|
volumes:
|
|
uploads:
|
|
postgres:
|
|
secrets:
|
|
db_password:
|
|
external: true
|
|
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
|
|
configs:
|
|
entrypoint_conf:
|
|
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_CONF_VERSION}
|
|
file: entrypoint.sh.tmpl
|
|
template_driver: golang
|