Skip to content

Commit 3988b57

Browse files
committed
feat: Switched database image from mariadb:10.5 to postgres:16 and updated environment variables and volume path accordingly.
1 parent a56f980 commit 3988b57

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ Dockerfile
77
tests
88
__tests__
99
.git
10-
.gitignore
10+
.gitignore
11+
archive

docker-compose.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ services:
1313
restart: unless-stopped
1414

1515
db:
16-
image: mariadb:10.5
16+
image: postgres:16
1717
container_name: cop-db
1818
environment:
19-
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
20-
MYSQL_DATABASE: ${DB_NAME}
21-
MYSQL_USER: ${DB_USERNAME}
22-
MYSQL_PASSWORD: ${DB_PASSWORD}
19+
POSTGRES_PASSWORD: ${DB_PASSWORD}
20+
POSTGRES_DB: ${DB_NAME}
21+
POSTGRES_USER: ${DB_USER}
2322
volumes:
24-
- db-data:/var/lib/mysql
23+
- db-data:/var/lib/postgresql/data
2524
networks:
2625
- cop-net
2726
restart: unless-stopped

0 commit comments

Comments
 (0)