We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04d4677 commit cc7f603Copy full SHA for cc7f603
Dockerfile
docker-compose.yaml
@@ -1,16 +1,20 @@
1
version: '3.8'
2
services:
3
db:
4
- container_name: postgres
5
- image: postgis/postgis:15-3.3
+ container_name: code-racer-postgres
+ image: postgres:15-bullseye
6
restart: always
7
environment:
8
- - POSTGRES_USER=postgres
9
- - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
+ - POSTGRES_USER=${DATABASE_USERNAME}
+ - POSTGRES_PASSWORD=${DATABASE_PASSWORD}
10
+ - POSTGRES_DB=${DATABASE_NAME}
11
+ env_file:
12
+ - .env
13
ports:
- - '5432:5432'
14
+ - ${DATABASE_PORT}:${DATABASE_PORT}
15
volumes:
16
- db:/var/lib/postgresql/data
17
+ - ./sql/init.sql:/docker-entrypoint-initdb.d/init.sql
18
19
20
driver: local
0 commit comments