Skip to content

Commit

Permalink
feat(anns): adapt docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-Frost committed Jul 27, 2022
1 parent 0724820 commit 48956a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions annotation-server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ services:
ports:
- 5432:5432
environment:
- POSTGRES_USER=${ANNOTATION_DB_USER}
- POSTGRES_PASSWORD=${ANNOTATION_DB_PASS}
- POSTGRES_DB=${ANNOTATION_DB_NAME}
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=admin
- POSTGRES_DB=annotation_db

volumes:
annotation_server_db:
10 changes: 5 additions & 5 deletions annotation-server/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ import { PhenotypesModule } from './phenotypes/phenotypes.module';
imports: [ConfigModule],
useFactory: (configService: ConfigService) => ({
type: 'postgres',
host: configService.get<string>('ANNOTATION_DB_HOST'),
port: configService.get<number>('ANNOTATION_DB_PORT'),
username: configService.get<string>('ANNOTATION_DB_USER'),
password: configService.get<string>('ANNOTATION_DB_PASS'),
database: configService.get<string>('ANNOTATION_DB_NAME'),
host: configService.get<string>('DB_HOST'),
port: configService.get<number>('DB_PORT'),
username: configService.get<string>('DB_USER'),
password: configService.get<string>('DB_PASS'),
database: configService.get<string>('DB_NAME'),
autoLoadEntities: true,
synchronize: true,
}),
Expand Down

0 comments on commit 48956a9

Please sign in to comment.