-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (42 loc) · 985 Bytes
/
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
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
env_file: ./.env.dev
ports:
- ${BACKEND_PORT}:${BACKEND_PORT}
volumes:
- ./backend/src:/app/src
- ./shared:/app/src/shared
- ./backend/test:/app/test
depends_on:
- db
- redis-server
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
env_file: ./.env.dev
ports:
- ${FRONTEND_PORT}:${FRONTEND_PORT}
volumes:
- ./frontend/src:/app/src
- ./shared:/app/src/shared
depends_on:
- backend
db:
image: postgres:14.2-alpine
restart: on-failure
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- ${DB_PORT}:${DB_PORT}
redis-server:
image: redis:latest
restart: on-failure
ports:
- ${REDIS_PORT}:${REDIS_PORT}