Skip to content

Commit c884626

Browse files
authored
Merge pull request #15 from icep0ps/create-dockerfile/docker-compose-files
Issue #3 | Create DockerFile / docker-compose final
2 parents f4c34dc + 992c482 commit c884626

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
**/.git
3+
**/README.md
4+
**/LICENSE
5+
**/.vscode
6+
**/npm-debug.log
7+
**/.env
8+
**/dist

docker-compose.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: '3.8'
2+
services:
3+
db:
4+
container_name: code-racer-postgres
5+
image: postgres:15.3-bookworm
6+
restart: always
7+
environment:
8+
- POSTGRES_USER=${DATABASE_USERNAME}
9+
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
10+
- POSTGRES_DB=${DATABASE_NAME}
11+
env_file:
12+
- .env
13+
ports:
14+
- ${DATABASE_PORT}:${DATABASE_PORT}
15+
volumes:
16+
- db:/var/lib/postgresql/data
17+
volumes:
18+
db:
19+
driver: local

0 commit comments

Comments
 (0)