docker-compose.yml 380 Bytes
Newer Older
Sylvain Boily's avatar
Sylvain Boily committed
1
db:
2
  image: postgres:9.4
Sylvain Boily's avatar
Sylvain Boily committed
3 4 5 6 7 8
  expose:
   - "5432"
  environment:
   - POSTGRES_USER=asterisk
   - POSTGRES_PASSWORD=proformatique
   - POSTGRES_DB=asterisk
9 10
  volumes:
    - "./Docker/prepare-db-for-tests.sql:/docker-entrypoint-initdb.d/prepare-db-for-tests.sql"
Sylvain Boily's avatar
Sylvain Boily committed
11 12 13 14
dao:
  build: .
  links:
    - db
15
  environment:
Sylvain Boily's avatar
Sylvain Boily committed
16
    - XIVO_TEST_DB_URL=postgresql://asterisk:proformatique@db/asterisk