1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00
Files
peeringdb-peeringdb/Ctl/dev/docker-compose.yml
Matt Griswold 299016282e Gh 724 (#897)
* remove log file writing from migration

* run tests on mysql

* fix tests (pt.1)

* fix tests (pt.2)

* fix all user_id errors in tests

* Fix geocode typo

* More test changes for mysql id issues

* Add coverage config that defines coverage db should go inside test folder

* update docs

* fix mysql user

* fix tests cli

* add mysql collate settings

* docs

* fix sync

* fix sync

* docs

* remove debug output

* remove XXX

* interim commit to move to dev box

* mv db local, rm after run

* updates for 724

* note layer error message and work around

* fix travis

* chown tests

* more travis fixes

* travis: touch Ctl/dev/.env

* write coverage report to ./coverage

* clean up docs

* formatting

Co-authored-by: Stefan Pratter <stefan@20c.com>
Co-authored-by: Elliot Frank <elliot@20c.com>
2020-12-03 13:10:02 -06:00

51 lines
1.3 KiB
YAML

version: "3.4"
services:
database:
image: "mysql:5.7"
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci
environment:
MYSQL_DATABASE: peeringdb
MYSQL_USER: peeringdb
MYSQL_PASSWORD: devPASSWORD
MYSQL_ALLOW_EMPTY_PASSWORD: 1
#MYSQL_ROOT_PASSWORD: devPASSWORD
# # set logging options to output in json
# logging:
# driver: json-file
# options:
# max-size: 100m
# max-file: "3"
restart: always
ports:
- "13306:3306"
volumes:
- ./peeringdb_database:/var/lib/mysql
peeringdb:
build:
context: ../..
dockerfile: Dockerfile
target: tester
command: runserver 0.0.0.0:8000
env_file: .env
environment:
DATABASE_USER: peeringdb
DATABASE_PASSWORD: devPASSWORD
DATABASE_HOST: database
# # set logging options to output in json
# logging:
# driver: json-file
# options:
# max-size: 100m
# max-file: "3"
ports:
# this needs to be set in the shell, compose env vars aren't read yet
- "${DJANGO_PORT:-8000}:8000"
volumes:
- ../../peeringdb_server:/srv/www.peeringdb.com/peeringdb_server
- ../../mainsite:/srv/www.peeringdb.com/mainsite
- ../../tests:/srv/www.peeringdb.com/tests
volumes:
peeringdb_database: