-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (63 loc) · 1.43 KB
/
docker-compose.yml
File metadata and controls
64 lines (63 loc) · 1.43 KB
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
version: '3.8'
services:
matchapp-backend:
build:
context: ./matchapp-backend
dockerfile: Dockerfile
restart: always
container_name: matchapp-backend
env_file: .env
environment:
- PORT=${BACK_PORT}
- DB_URL=jdbc:postgresql://postgres:5432/matchapp?user=admin&password=admin
- REDIS_URL=redis://redis:6379
- MONGODB_URL=mongodb://mongo:27017/matchapp
- JWT_SECRET=${JWT_SECRET}
ports:
- ${BACK_PORT}:${BACK_PORT}
depends_on:
- redis
- mongo
networks:
- matchapp-network
matchapp-front:
build:
context: ./matchapp-frontend
dockerfile: Dockerfile
restart: always
container_name: matchapp-frontend
env_file: .env
environment:
- PORT=${FRONT_PORT}
- VITE_BASE_URL=${VITE_BASE_URL}
ports:
- ${FRONT_PORT}:${FRONT_PORT}
depends_on:
- matchapp-backend
networks:
- matchapp-network
postgres:
image: postgres:15.4
restart: always
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
POSTGRES_DB: matchapp
volumes:
- ~/postgresql/data:/var/lib/postgresql/data
networks:
- matchapp-network
redis:
image: redis
restart: always
environment:
- REDIS_ARGS="--save 1 1"
networks:
- matchapp-network
mongo:
image: mongo:4.4.8
restart: always
networks:
- matchapp-network
networks:
matchapp-network: