Skip to content

Commit 7876a34

Browse files
committed
Docker: Adjust postgres container to create regular *and* test database
1 parent 5e17d5e commit 7876a34

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ services:
2828
postgres:
2929
image: postgres:9.6
3030
environment:
31-
POSTGRES_DB: cargo_registry
3231
POSTGRES_USER: postgres
3332
POSTGRES_PASSWORD: password
3433
ports:
3534
- 5432:5432
3635
volumes:
36+
- ./docker/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
3737
- postgres-data:/var/lib/postgresql/data
3838

3939
backend:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CREATE DATABASE cargo_registry;
2+
CREATE DATABASE cargo_registry_test;

0 commit comments

Comments
 (0)