2021-12-14 14:47:35 -05:00
|
|
|
version: "3.8"
|
2021-10-20 09:07:19 -04:00
|
|
|
|
|
|
|
services:
|
2021-12-03 12:16:21 -05:00
|
|
|
|
|
|
|
# LDAP container hosting example users
|
2021-10-20 09:07:19 -04:00
|
|
|
ldap:
|
|
|
|
container_name: "vinyldns-ldap"
|
2021-10-27 13:43:21 -04:00
|
|
|
image: vinyldns/build:openldap
|
2021-10-20 09:07:19 -04:00
|
|
|
ports:
|
2021-10-27 13:43:21 -04:00
|
|
|
- "19004:19004"
|
2021-10-20 09:07:19 -04:00
|
|
|
|
2021-12-03 12:16:21 -05:00
|
|
|
# Integration image hosting r53, sns, sqs, bind, and mysql
|
2021-10-20 09:07:19 -04:00
|
|
|
integration:
|
|
|
|
container_name: "vinyldns-api-integration"
|
2021-12-15 10:42:32 -05:00
|
|
|
hostname: "vinyldns-integration"
|
2021-10-27 13:43:21 -04:00
|
|
|
image: "vinyldns/build:base-test-integration-${VINYLDNS_IMAGE_VERSION}"
|
2021-10-20 09:07:19 -04:00
|
|
|
build:
|
|
|
|
context: ../
|
|
|
|
dockerfile: test/api/integration/Dockerfile
|
2021-10-27 13:43:21 -04:00
|
|
|
args:
|
2021-11-02 17:06:24 -04:00
|
|
|
VINYLDNS_BASE_VERSION: "${VINYLDNS_BASE_VERSION}"
|
2021-10-20 09:07:19 -04:00
|
|
|
environment:
|
2021-10-27 13:43:21 -04:00
|
|
|
RUN_SERVICES: "deps-only tail-logs"
|
2021-10-20 09:07:19 -04:00
|
|
|
env_file:
|
|
|
|
.env
|
|
|
|
ports:
|
|
|
|
- "19001-19003:19001-19003/tcp"
|
|
|
|
- "19001:19001/udp"
|
|
|
|
|
2021-12-03 12:16:21 -05:00
|
|
|
# The VinylDNS API
|
2021-10-27 13:43:21 -04:00
|
|
|
api:
|
|
|
|
container_name: "vinyldns-api"
|
2021-12-14 14:47:35 -05:00
|
|
|
oom_kill_disable: true
|
2021-10-27 13:43:21 -04:00
|
|
|
image: "vinyldns/api:${VINYLDNS_IMAGE_VERSION}"
|
|
|
|
build:
|
|
|
|
context: ../
|
2021-11-02 17:06:24 -04:00
|
|
|
dockerfile: build/docker/api/Dockerfile
|
2021-10-27 13:43:21 -04:00
|
|
|
args:
|
2021-11-02 17:06:24 -04:00
|
|
|
VINYLDNS_VERSION: "${VINYLDNS_IMAGE_VERSION}"
|
2021-12-14 14:47:35 -05:00
|
|
|
DOCKER_FILE_PATH: "build/docker/api"
|
2021-10-27 13:43:21 -04:00
|
|
|
volumes:
|
2021-12-03 12:16:21 -05:00
|
|
|
- ../build/docker/api/application.conf:/opt/vinyldns/conf/application.conf
|
2021-10-27 13:43:21 -04:00
|
|
|
env_file:
|
2022-01-31 13:40:45 -05:00
|
|
|
- .env
|
2021-10-27 13:43:21 -04:00
|
|
|
ports:
|
|
|
|
- "9000:9000"
|
|
|
|
depends_on:
|
|
|
|
- integration
|
|
|
|
|
2021-12-03 12:16:21 -05:00
|
|
|
# The VinylDNS portal
|
2021-10-20 09:07:19 -04:00
|
|
|
portal:
|
|
|
|
container_name: "vinyldns-portal"
|
2021-12-14 14:47:35 -05:00
|
|
|
oom_kill_disable: true
|
2021-10-27 13:43:21 -04:00
|
|
|
image: "vinyldns/portal:${VINYLDNS_IMAGE_VERSION}"
|
2021-10-20 09:07:19 -04:00
|
|
|
build:
|
2021-10-27 13:43:21 -04:00
|
|
|
context: ../
|
2021-11-02 17:06:24 -04:00
|
|
|
dockerfile: build/docker/portal/Dockerfile
|
|
|
|
args:
|
2021-12-14 14:47:35 -05:00
|
|
|
DOCKER_FILE_PATH: "build/docker/portal"
|
2021-11-02 17:06:24 -04:00
|
|
|
VINYLDNS_VERSION: "${VINYLDNS_IMAGE_VERSION}"
|
2021-10-20 09:07:19 -04:00
|
|
|
env_file:
|
|
|
|
.env
|
|
|
|
ports:
|
|
|
|
- "${PORTAL_PORT}:${PORTAL_PORT}"
|
|
|
|
volumes:
|
2021-11-02 17:06:24 -04:00
|
|
|
- ../build/docker/portal/application.conf:/opt/vinyldns/conf/application.conf
|
2021-10-20 09:07:19 -04:00
|
|
|
depends_on:
|
|
|
|
- ldap
|
|
|
|
|
2021-12-03 12:16:21 -05:00
|
|
|
# Custom network so that we don't interfere with the host system
|
2021-10-20 09:07:19 -04:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
name: "vinyldns_net"
|