1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/nginad/README.md

65 lines
1.4 KiB
Markdown
Raw Normal View History

2015-09-18 11:05:05 +02:00
nginad
======
2015-09-18 12:00:23 +02:00
2015-09-18 13:11:14 +02:00
[NginAd][1] open source ad server & exchange with OpenRTB.
2015-09-18 12:00:23 +02:00
## docker-compose.yml
```
nginad:
image: vimagick/nginad
ports:
2015-09-21 05:41:31 +02:00
- "80:80"
2015-09-18 12:00:23 +02:00
links:
- mysql
restart: always
mysql:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=nginad
restart: always
```
## run
```
$ fig up -d
2015-09-21 06:38:06 +02:00
2015-09-18 12:00:23 +02:00
$ wget https://nginad.atlassian.net/wiki/download/attachments/1114149/nginad-1.6.sql
$ docker exec -i nginad_mysql_1 mysql -u root -proot nginad < nginad-1.6.sql
2015-09-21 06:38:06 +02:00
$ DOMAIN=nginad.foobar.site
$ docker exec nginad_nginad_1 sed -i "/adserver_domain/s/'.*'/'$DOMAIN'/" upload/public/ad/nginad.js
$ docker exec nginad_nginad_1 sed -i "s/server.nginad.com/$DOMAIN/" upload/config/autoload/delivery.local.php
$ docker exec nginad_nginad_1 sed -i "s/server.nginad.com/$DOMAIN/" upload/public/buytest.html
2015-09-18 13:02:56 +02:00
$ fig restart nginad
2015-09-18 12:00:23 +02:00
```
2015-09-18 13:11:14 +02:00
2015-09-21 06:38:06 +02:00
## test
Open test page in your browser: <http://nginad.foobar.site/buytest.html>
2015-09-21 05:41:31 +02:00
## admin
Now log into the Demand Customer and Publisher [dashboards][2] as admin and
start adding and configuring RTB campaigns.
- username: admin@localhost
- password: password
Log in as the default publisher account:
- username: sergey.page@blowmedianow.com
- password: password
Log in as the default demand customer account:
- username: larry.brin@suckmedianow.com
- password: password
2015-09-18 13:11:14 +02:00
[1]: https://nginad.atlassian.net/wiki/display/NGIN/nginad+Home
2015-09-21 05:41:31 +02:00
[2]: http://nginad.foobar.site/auth/login