Initial import
This commit is contained in:
commit
c429a8f8cb
|
@ -0,0 +1,28 @@
|
|||
# ${REPO_NAME_TITLE}
|
||||
|
||||
${REPO_DESCRIPTION}
|
||||
|
||||
<!-- metadata -->
|
||||
* **Category**:
|
||||
* **Status**:
|
||||
* **Image**: [`${REPO_NAME}`](https://hub.docker.com/r/${REPO_NAME}/${REPO_NAME})
|
||||
* **Healthcheck**:
|
||||
* **Backups**:
|
||||
* **Email**:
|
||||
* **Tests**:
|
||||
* **SSO**:
|
||||
<!-- endmetadata -->
|
||||
|
||||
## Basic usage
|
||||
|
||||
1. Set up Docker Swarm and [`abra`]
|
||||
2. Deploy [`coop-cloud/traefik`]
|
||||
3. `abra app new ${REPO_NAME} --secrets` (optionally with `--pass` if you'd like
|
||||
to save secrets in `pass`)
|
||||
4. `abra app YOURAPPDOMAIN config` - be sure to change `$DOMAIN` to something that resolves to
|
||||
your Docker swarm box
|
||||
5. `abra app YOURAPPDOMAIN deploy`
|
||||
6. Open the configured domain in your browser to finish set-up
|
||||
|
||||
[`abra`]: https://git.autonomic.zone/autonomic-cooperative/abra
|
||||
[`coop-cloud/traefik`]: https://git.autonomic.zone/coop-cloud/traefik
|
|
@ -0,0 +1,90 @@
|
|||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: loomio/loomio:stable
|
||||
environment:
|
||||
- DATABASE_URL=postgresql://postgres:password@db/loomio_production
|
||||
- REDIS_URL=redis://redis:6379
|
||||
volumes:
|
||||
- loomio_uploads:/loomio/public/system
|
||||
- loomio_storage:/loomio/storage
|
||||
- loomio_files:/loomio/public/files
|
||||
- loomio_plugins:/loomio/plugins/docker
|
||||
- loomio_import:/import
|
||||
networks:
|
||||
- proxy
|
||||
- backend
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=3000"
|
||||
- "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}"
|
||||
|
||||
worker:
|
||||
image: loomio/loomio:stable
|
||||
networks:
|
||||
- backend
|
||||
environment:
|
||||
- DATABASE_URL=postgresql://postgres:password@db/loomio_production
|
||||
- REDIS_URL=redis://redis:6379
|
||||
- TASK=worker
|
||||
volumes:
|
||||
- loomio_uploads:/loomio/public/system
|
||||
- loomio_storage:/loomio/storage
|
||||
- loomio_files:/loomio/public/files
|
||||
- loomio_plugins:/loomio/plugins/docker
|
||||
|
||||
db:
|
||||
image: postgres:12.2
|
||||
networks:
|
||||
- backend
|
||||
volumes:
|
||||
- ./pgdata:/pgdata
|
||||
- ./pgdumps:/pgdumps
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=password
|
||||
- POSTGRES_DB=loomio_production
|
||||
- PGDATA=/pgdata
|
||||
|
||||
redis:
|
||||
image: redis:5.0
|
||||
networks:
|
||||
- backend
|
||||
|
||||
#mailin:
|
||||
# image: loomio/mailin-docker:latest
|
||||
# networks:
|
||||
# - proxy
|
||||
# ports:
|
||||
# - "25:25"
|
||||
# environment:
|
||||
# - WEBHOOK_URL=http://app:3000/email_processor/
|
||||
|
||||
channels:
|
||||
image: loomio/loomio_channel_server
|
||||
networks:
|
||||
- proxy
|
||||
depends_on:
|
||||
- redis
|
||||
environment:
|
||||
- REDIS_URL=redis://redis:6379
|
||||
|
||||
networks:
|
||||
backend:
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
loomio_uploads:
|
||||
loomio_storage:
|
||||
loomio_files:
|
||||
loomio_plugins:
|
||||
loomio_import:
|
Loading…
Reference in New Issue