-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (68 loc) · 1.68 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
version: '3.8'
services:
postgres:
image: postgres:15.2-alpine3.17
restart: always
container_name: database
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- postgres:/var/lib/postgresql/data
ports:
- 5432:5432
networks:
- backend
nestjs:
build: ./backend
restart: always
container_name: backend
depends_on:
- postgres
- redis
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- REDIS_URL=${REDIS_URL}
- SESSION_SECRET=${SESSION_SECRET}
- BACKENDPORT=${BACKENDPORT}
- THROTTLER_TTL=${THROTTLER_TTL}
- THROTTLER_LIMIT=${THROTTLER_LIMIT}
- DATABASE_URL=${DATABASE_URL}
- FORTYTWO_CLIENT_ID=${FORTYTWO_CLIENT_ID}
- FORTYTWO_CLIENT_SECRET=${FORTYTWO_CLIENT_SECRET}
- FORTYTWO_CALLBACK_URL=${FORTYTWO_CALLBACK_URL}
- ISSUER=${ISSUER}
- BACKENDURL=${BACKENDURL}
- FRONTENDURL=${FRONTENDURL}
volumes:
- ./backend/src:/app/src
ports:
- ${BACKENDPORT}:${BACKENDPORT}
networks:
- backend
redis:
image: redis:7.0.8-alpine3.17
restart: always
container_name: cache
ports:
- 7777:7777
networks:
- backend
reactjs:
build: ./frontend
restart: always
container_name: frontend
environment:
- VITE_BACKENDURL=${VITE_BACKENDURL}
- VITE_FRONTENDURL=${VITE_FRONTENDURL}
- FRONTENDPORT=${FRONTENDPORT}
volumes:
- ./frontend/src:/app/src
ports:
- ${FRONTENDPORT}:${FRONTENDPORT}
volumes:
postgres:
networks:
backend: