2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-22 02:02:14 +00:00
vinyldns/quickstart/docker-compose.yml
corubba 1292564bf1 Remove duplicate log output
Appenders in logback are additive [0], specifying them multiple times
leads to log lines being output multiple times. It is usually enough to
set the appender on the root logger, and nowhere else.
Setting the same log level on multiple package levels is also kind of
unneeded, the top-most one would be enough; but not touching that here.

[0] https://logback.qos.ch/manual/configuration.html#cumulative
2022-04-17 21:03:29 +02:00

76 lines
2.0 KiB
YAML

version: "3.8"
services:
# LDAP container hosting example users
ldap:
container_name: "vinyldns-ldap"
image: vinyldns/build:openldap
ports:
- "19004:19004"
# Integration image hosting r53, sns, sqs, bind, and mysql
integration:
container_name: "vinyldns-api-integration"
hostname: "vinyldns-integration"
image: "vinyldns/build:base-test-integration-${VINYLDNS_IMAGE_VERSION}"
build:
context: ../
dockerfile: test/api/integration/Dockerfile
args:
VINYLDNS_BASE_VERSION: "${VINYLDNS_BASE_VERSION}"
environment:
RUN_SERVICES: "deps-only tail-logs"
env_file:
.env
ports:
- "19001-19003:19001-19003/tcp"
- "19001:19001/udp"
# The VinylDNS API
api:
container_name: "vinyldns-api"
oom_kill_disable: true
image: "vinyldns/api:${VINYLDNS_IMAGE_VERSION}"
build:
context: ../
dockerfile: build/docker/api/Dockerfile
args:
VINYLDNS_VERSION: "${VINYLDNS_IMAGE_VERSION}"
DOCKER_FILE_PATH: "build/docker/api"
volumes:
- ../build/docker/api/application.conf:/opt/vinyldns/conf/application.conf
- ../build/docker/api/logback.xml:/opt/vinyldns/conf/logback.xml
env_file:
- .env
ports:
- "9000:9000"
depends_on:
- integration
# The VinylDNS portal
portal:
container_name: "vinyldns-portal"
oom_kill_disable: true
image: "vinyldns/portal:${VINYLDNS_IMAGE_VERSION}"
build:
context: ../
dockerfile: build/docker/portal/Dockerfile
args:
DOCKER_FILE_PATH: "build/docker/portal"
VINYLDNS_VERSION: "${VINYLDNS_IMAGE_VERSION}"
env_file:
.env
ports:
- "${PORTAL_PORT}:${PORTAL_PORT}"
volumes:
- ../build/docker/portal/application.conf:/opt/vinyldns/conf/application.conf
- ../build/docker/portal/logback.xml:/opt/vinyldns/conf/logback.xml
depends_on:
- ldap
# Custom network so that we don't interfere with the host system
networks:
default:
name: "vinyldns_net"