Skip to content

Commit 7d83776

Browse files
authored
Merge pull request #123 from PEC-CSS/gurmehar/acm-backend
modified docker compose file to use existing acm-backend image
2 parents 1f6b482 + db7d2c1 commit 7d83776

3 files changed

Lines changed: 21 additions & 7 deletions

File tree

compose.yaml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
11
services:
22
postgres-database:
3-
image: 'postgres:latest'
3+
image: 'postgres:15'
44
container_name: postgres-database
55
environment:
6-
- 'POSTGRES_DB=acm'
7-
- 'POSTGRES_PASSWORD=acmheads'
8-
- 'POSTGRES_USER=acmsecy'
6+
- POSTGRES_DB=acm
7+
- POSTGRES_USER=acmsecy
8+
- POSTGRES_PASSWORD=acmheads
99
ports:
10-
- '5432:5432'
10+
- "5432:5432"
1111
volumes:
12-
- db-data:/var/lib/backup/data
12+
- db-data:/var/lib/postgresql/data
13+
14+
backend:
15+
image: pecacm/acm-website:1.1.12
16+
container_name: acm-backend
17+
environment:
18+
- POSTGRESQL_DB_URL=jdbc:postgresql://postgres-database:5432/acm
19+
- POSTGRESQL_DB_USER=acmsecy
20+
- POSTGRESQL_DB_PASSWORD=acmheads
21+
- SMTP_EMAIL=youremail@gmail.com
22+
- SMTP_PASSWORD=yourpassword
23+
ports:
24+
- "8080:8080"
25+
depends_on:
26+
- postgres-database
1327

1428
volumes:
15-
db-data:
29+
db-data:

target/backend-1.0.1.jar

0 Bytes
Binary file not shown.

target/backend-1.0.1.jar.original

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)