2020-01-31 19:05:34 +01:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
2020-02-01 02:37:35 +01:00
|
|
|
database:
|
|
|
|
image: postgres
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- db_conn
|
|
|
|
command:
|
|
|
|
- postgres
|
|
|
|
- -c
|
|
|
|
- config_file=/etc/postgresql/postgresql.conf
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER={{ rt_postgres_user }}
|
|
|
|
- POSTGRES_PASSWORD={{ rt_postgres_password }}
|
|
|
|
volumes:
|
|
|
|
- /var/lib/postgres/data:/var/lib/postgres/data
|
|
|
|
- /etc/rt/postgresql.conf:/etc/postgresql/postgresql.conf
|
2020-01-31 19:05:34 +01:00
|
|
|
rt:
|
|
|
|
image: netsandbox/request-tracker:latest
|
2020-02-01 02:37:35 +01:00
|
|
|
depends_on:
|
|
|
|
- database
|
2020-01-31 19:05:34 +01:00
|
|
|
ports:
|
|
|
|
- "8082:80"
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2020-02-01 02:37:35 +01:00
|
|
|
- /etc/rt/setup.sh:/usr/local/bin/setup.sh
|
|
|
|
- /etc/rt/wait-for.sh:/usr/local/bin/wait-for.sh
|
2020-01-31 19:05:34 +01:00
|
|
|
restart: always
|
2020-02-01 02:37:35 +01:00
|
|
|
entrypoint:
|
|
|
|
- /usr/local/bin/wait-for.sh
|
|
|
|
- database:5432
|
|
|
|
- --
|
|
|
|
- /usr/local/bin/setup.sh
|
|
|
|
networks:
|
|
|
|
- db_conn
|
2020-01-31 19:05:34 +01:00
|
|
|
environment:
|
2020-02-01 02:37:35 +01:00
|
|
|
- WEB_DOMAIN=rt.2martens.de
|
|
|
|
- RT_DB_NAME=rt4
|
|
|
|
- RT_DB_HOST=database
|
|
|
|
- RT_DB_PORT=5432
|
|
|
|
- RT_DB_USER={{ rt_postgres_user }}
|
|
|
|
- RT_DB_PASSWORD={{ rt_postgres_password }}
|
|
|
|
- DATABASE_USER={{ rt_postgres_user }}
|
|
|
|
- DATABASE_PASSWORD={{ rt_postgres_password }}
|
|
|
|
- DATABASE_NAME=rt4
|
|
|
|
- DATABASE_HOST=database
|
|
|
|
- RT_NAME={{ rt_domain }}
|
|
|
|
- TIMEZONE=Europe/Berlin
|
|
|
|
- OWNER_EMAIL={{ admin_mail }}
|
|
|
|
- WEB_BASE_URL=https://{{ rt_domain}}
|
|
|
|
- WEB_PORT=443
|
2020-01-31 19:05:34 +01:00
|
|
|
- LC_ALL=C.UTF-8
|
|
|
|
- LANG=C.UTF-8
|
2020-02-01 02:37:35 +01:00
|
|
|
networks:
|
|
|
|
db_conn:
|
|
|
|
driver: bridge
|