/
docker-compose.yml
83 lines (77 loc) · 2.54 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:
# -------------------------------------------------------------------------------- #
# backend service with nestjs #
# -------------------------------------------------------------------------------- #
backend:
build:
context: ./backend
container_name: backend
env_file:
- .env
ports:
- 3000:3000
restart: always
depends_on:
- postgres
networks:
- transcendence_net
volumes:
- ./backend:/backend
- /backend/node_modules
# -------------------------------------------------------------------------------- #
# frontend service with Vite-React #
# -------------------------------------------------------------------------------- #
app:
build:
context: ./App
container_name: app
env_file:
- .env
ports:
- 8080:8080
restart: always
networks:
- transcendence_net
volumes:
- ./App:/App
- /App/node_modules
# -------------------------------------------------------------------------------- #
# postgresql database #
# -------------------------------------------------------------------------------- #
postgres:
image: postgres:15.2-alpine3.17
container_name: postgres
restart: always
env_file:
- .env
volumes:
- database:/var/lib/postgresql/data
ports:
- 5432:5432
networks:
- transcendence_net
# -------------------------------------------------------------------------- #
# redis database #
# -------------------------------------------------------------------------- #
redis:
image: redis:7.0.8-alpine3.17
restart: always
container_name: redis
ports:
- 6789:6789
networks:
- transcendence_net
volumes:
- redis:/data
# -------------------------------------------------------------------------------- #
# networks #
# -------------------------------------------------------------------------------- #
networks:
transcendence_net:
# -------------------------------------------------------------------------------- #
# volumes #
# -------------------------------------------------------------------------------- #
volumes:
database:
redis: