-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
83 lines (74 loc) Β· 1.71 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: "3"
services:
parent-app:
build:
context: ./parent-app
container_name: parent-app-container
stdin_open: true
volumes:
- ./parent-app:/app/parent-app
- /app/parent-app/node_modules
ports:
- '3000:3000'
env_file:
- ./google-project-key.env
admin-app:
build:
context: ./admin-app
container_name: admin-app-container
stdin_open: true
volumes:
- ./admin-app:/app/admin-app
- /app/admin-app/node_modules
ports:
- '3001:3001'
env_file:
- ./google-project-key.env
seller-app:
build:
context: ./seller-app
container_name: seller-app-container
stdin_open: true
volumes:
- ./seller-app:/app/seller-app
- /app/seller-app/node_modules
ports:
- '3002:3002'
env_file:
- ./google-project-key.env
database:
image: postgres:14-alpine
restart: always
container_name: database-container
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=Loukas438
- POSTGRES_DB=activitiesDB
ports:
- '5432:5432'
volumes:
- db:/var/lib/postgresql/data
- ./db/db_data.sql:/docker-entrypoint-initdb.d/crate_tables.sql
networks:
- local-net
api:
build:
context: ./back-end/api
container_name: api-container
depends_on:
- database
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://database:5432/activitiesDB
- SPRING_DATASOURCE_USERNAME=postgres
- SPRING_DATASOURCE_PASSWORD=Loukas438
- SPRING_JPA_HIBERNATE_DDL_AUTO=update
ports:
- '8070:8070'
networks:
- local-net
volumes:
db:
driver: local
networks:
local-net:
driver: bridge