Commit dd086333 authored by Morbi's avatar Morbi

add current deployment docker-compose

parent 10cf9336
# Compose files
## requirements
* docker and docker-compose `apt install docker.io docker-compose`
## usage
* cd to stack you want to start `cd sangha`
* copy `example.env` to `.env` and change according to your settings
* start containers `docker-compose up -d`
## updating
* when modified `docker-compose.yml` or `.env` update via `docker-compose up -d`
* update containers with `docker-compose pull && docker-compose up -d`
version: '2'
services:
sangha-donate-live:
image: registry.gitlab.techcultivation.org/sangha/sangha-donate:v1.0.0-beta2
restart: unless-stopped
ports:
- 127.0.0.1:8080:80
environment:
- API_URL=https://api.sangha.techcultivation.org/v1
- SENTRY_DSN="${DONATE_LIVE_DSN}"
- NAVBAR_SIMPLE=true
#- RENDERTRON_URL=http://rendertron:8080/render/
sangha-donate-sandbox:
image: registry.gitlab.techcultivation.org/sangha/sangha-donate:dev
restart: unless-stopped
ports:
- 127.0.0.1:8081:80
environment:
- API_URL=https://sandbox.api.sangha.techcultivation.org/v1
- SENTRY_DSN="${DONATE_SAND_DSN}"
- PRIMARY_COLOR=#283593
#- RENDERTRON_URL=http://rendertron:8080/render/
sangha-embed-live:
image: registry.gitlab.techcultivation.org/sangha-webcomponents/sangha-embed:v1.1.1
restart: unless-stopped
ports:
- 127.0.0.1:8090:80
sangha-embed-sandbox:
image: registry.gitlab.techcultivation.org/sangha-webcomponents/sangha-embed:dev
restart: unless-stopped
ports:
- 127.0.0.1:8091:80
# rendertron:
# image: samdotli/rendertron
# restart: unless-stopped
DONATE_LIVE_DSN=
DONATE_SAND_DSN=
version: '2'
services:
rabbit:
image: rabbitmq
hostname: rabbit
ports:
- 5672:5672
- 8080:15672
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
- RABBITMQ_DEFAULT_VHOST=rabbit
version: '2'
services:
redis:
image: redis:3.2-alpine
restart: unless-stopped
postgres:
image: postgres:9.5
restart: unless-stopped
volumes:
- ./data/sentry_pg_db:/var/lib/postgresql/data
memcached:
restart: unless-stopped
image: memcached:1.4
sentry:
image: sentry:8
restart: unless-stopped
ports:
- 127.0.0.1:9000:9000
links: &links
- redis
- postgres
environment: &env
SENTRY_SECRET_KEY: "${SENTRY_SECRET_KEY}"
SENTRY_SERVER_EMAIL: sentry@techcultivation.org
SENTRY_EMAIL_HOST: smtp.techcultivation.org
SENTRY_EMAIL_USER: sentry@techcultivation.org
SENTRY_EMAIL_PASSWORD: "${SENTRY_EMAIL_PASSWORD}"
SENTRY_EMAIL_USE_TLS: 1
SENTRY_POSTGRES_HOST: postgres
SENTRY_REDIS_HOST: redis
SENTRY_MEMCACHED_HOST: memcached
SENTRY_USE_SSL: 1
sentry-worker:
image: sentry:8
restart: unless-stopped
links:
*links
environment:
*env
command: "sentry run worker"
sentry-cron:
image: sentry:8
restart: unless-stopped
links:
*links
environment:
*env
command: "sentry run cron"
SENTRY_SECRET_KEY=
SENTRY_EMAIL_PASSWORD=
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment