2019-03-01 22:49:31 +00:00
|
|
|
version: "2.1"
|
|
|
|
|
|
|
|
services:
|
|
|
|
powerdns-admin:
|
|
|
|
build:
|
|
|
|
context: .
|
2019-12-04 04:50:46 +00:00
|
|
|
dockerfile: docker-test/Dockerfile
|
2019-03-01 22:49:31 +00:00
|
|
|
args:
|
|
|
|
- ENVIRONMENT=test
|
|
|
|
image: powerdns-admin-test
|
|
|
|
env_file:
|
2019-12-04 04:50:46 +00:00
|
|
|
- ./docker-test/env
|
2019-03-01 22:49:31 +00:00
|
|
|
container_name: powerdns-admin-test
|
|
|
|
mem_limit: 256M
|
|
|
|
memswap_limit: 256M
|
|
|
|
ports:
|
|
|
|
- "9191:9191"
|
|
|
|
volumes:
|
|
|
|
# Code
|
|
|
|
- .:/powerdns-admin/
|
|
|
|
- "./configs/test.py:/powerdns-admin/config.py"
|
|
|
|
- powerdns-admin-assets3:/powerdns-admin/logs
|
|
|
|
- ./app/static/custom:/powerdns-admin/app/static/custom
|
|
|
|
logging:
|
|
|
|
driver: json-file
|
|
|
|
options:
|
|
|
|
max-size: 50m
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
depends_on:
|
|
|
|
- pdns-server
|
|
|
|
|
|
|
|
pdns-server:
|
|
|
|
build:
|
|
|
|
context: .
|
2019-12-04 04:50:46 +00:00
|
|
|
dockerfile: docker-test/Dockerfile.pdns
|
2019-03-01 22:49:31 +00:00
|
|
|
image: pdns-server-test
|
|
|
|
ports:
|
|
|
|
- "5053:53"
|
|
|
|
- "5053:53/udp"
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
env_file:
|
2019-12-04 04:50:46 +00:00
|
|
|
- ./docker-test/env
|
2019-03-01 22:49:31 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
|
|
|
|
volumes:
|
2019-12-04 04:50:46 +00:00
|
|
|
powerdns-admin-assets3:
|