-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (40 loc) · 906 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '3.8'
services:
wallet_app:
build: ./wallet-app-backend/.
container_name: wallet_app
ports:
- "8080:8080"
environment:
- DATABASE_URL=jdbc:postgresql://postgresql_db:5432/wallet_app
- DATABASE_USERNAME=postgres
- DATABASE_PASSWORD=postgres
depends_on:
- postgresql_db
networks:
- my-network
postgresql_db:
image: postgres:15.2
restart: always
container_name: postgresql_db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
networks:
- my-network
wallet_app_frontend:
build: ./wallet-app-frontend/.
container_name: wallet_app_frontend
ports:
- "80:80"
networks:
- my-network
volumes:
postgres_data:
networks:
my-network:
driver: bridge