2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-22 02:02:14 +00:00
vinyldns/docker/docker-compose-quick-start.yml
Emerle, Ryan 07b683cbd0 Updates
- Remove old, unused scripts in `bin/`
- Remove old images from release
  - `test` and `test-bind` are no longer necessary. Test images are in a different repo now
- Remove Docker image creation from sbt build config - actual `Dockerfile` files are easier to deal with

- Update scripts in `bin/` to utilize new Docker images
- Update documentation for changes
- Update all Docker Compose and configuration to use exposed ports on the `integration` image (19001, 19002, etc) both inside the container and outside to make testing more consistent irrespective of method
- Update FlywayDB dependency to v8 to fix a weird logging bug that showed up during integration testing. See: https://github.com/flyway/flyway/issues/2270

- Add `test/api/integration` Docker container definition to be used for any integration testing

- Move `module/api/functional_test` to `test/api/functional` to centralize the "integration-type" external tests and testing utilities

- Move functional testing and integration image to the `test/` folder off of the root to reduce confusion with `bin/` and `docker/`
2021-10-15 15:06:04 -04:00

69 lines
1.5 KiB
YAML

version: "3.0"
services:
mysql:
image: "mysql:5.7"
env_file:
.env.quickstart
container_name: "vinyldns-mysql"
ports:
- "19002:3306"
bind9:
image: "vinyldns/bind9:0.0.5"
env_file:
.env.quickstart
container_name: "vinyldns-bind9"
ports:
- "19001:53/udp"
- "19001:53"
volumes:
- ./bind9/etc:/var/cache/bind/config
- ./bind9/zones:/var/cache/bind/zones
localstack:
image: localstack/localstack:0.10.4
container_name: "vinyldns-localstack"
ports:
- "19006:19006"
- "19007:19007"
- "19009:19009"
environment:
- SERVICES=sns:19006,sqs:19007,route53:19009
- START_WEB=0
- HOSTNAME_EXTERNAL=vinyldns-localstack
ldap:
image: rroemhild/test-openldap
container_name: "vinyldns-ldap"
ports:
- "19008:389"
api:
image: "vinyldns/api:${VINYLDNS_VERSION}"
env_file:
.env.quickstart
container_name: "vinyldns-api"
ports:
- "${REST_PORT}:${REST_PORT}"
volumes:
- ./api/docker.conf:/opt/docker/conf/application.conf
- ./api/logback.xml:/opt/docker/conf/logback.xml
depends_on:
- mysql
- bind9
- localstack
portal:
image: "vinyldns/portal:${VINYLDNS_VERSION}"
env_file:
.env.quickstart
ports:
- "${PORTAL_PORT}:${PORTAL_PORT}"
container_name: "vinyldns-portal"
volumes:
- ./portal/application.ini:/opt/docker/conf/application.ini
- ./portal/application.conf:/opt/docker/conf/application.conf
depends_on:
- api
- ldap