-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
54 lines (52 loc) · 1.27 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
version: "3.7"
services:
db:
image: postgres
container_name: technites-postgres
restart: always
volumes:
- "pgdata:/var/lib/postgresql/data"
ports:
- "${DB_DOCKER_PORT}:5432"
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
redis:
image: redis
web:
command: bash -c "npm run db:reset && npm run dev"
build: .
container_name: technites-backend
depends_on:
- db
- redis
ports:
- "${WEB_DOCKER_PORT}:${PORT}"
environment:
- DB_HOST=db
- DB_USER=${DB_USER}
- DB_NAME=${DB_NAME}
- DB_PASS=${DB_PASS}
- JWT_SECRET= ${JWT_SECRET}
- SENDGRID_API_KEY= ${SENDGRID_API_KEY}
- REDIS_URL=redis://redis:6379
- MAIL_URL_PRODUCTION= ${MAIL_URL_PRODUCTION}
- MAIL_URL_DEVELOPMENT= ${MAIL_URL_DEVELOPMENT}
- CLOUDINARY_NAME= ${CLOUDINARY_NAME}
- CLOUDINARY_API_KEY= ${CLOUDINARY_API_KEY}
- CLOUDINARY_API_SECRET= ${CLOUDINARY_API_SECRET}
links:
- db
ui:
container_name: technites-frontend
build: "${UI_PATH}"
volumes:
- '../technites-bn-frontend:/usr/src/app'
- '/usr/src/app/node_modules'
ports:
- "3001:3000"
links:
- web
volumes:
pgdata: