-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (58 loc) · 1.75 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
services:
backend:
build:
context: .
dockerfile: devops/backend/Dockerfile
args:
PORT_BACKEND: ${PORT_BACKEND}
environment:
- PORT_BACKEND=${PORT_BACKEND}
- PORT_FRONTEND=${PORT_FRONTEND}
- APP_ENV=${APP_ENV}
- ROUTE_PREFIX=${ROUTE_PREFIX}
- KEY_VAULT_URI=${KEY_VAULT_URI}
- TENANT_ID=${TENANT_ID}
- CLIENT_ID=${CLIENT_ID}
- CLIENT_SECRET=${CLIENT_SECRET}
- REDIS_HOST=redis
- REDIS_PORT=${REDIS_PORT}
- MIN_REDIS_VERSION=${MIN_REDIS_VERSION}
image: backend_image
container_name: backend_container
ports:
- '${PORT_BACKEND}:${PORT_BACKEND}'
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- source_code_volume:/app/source-code
depends_on:
- redis
frontend:
build:
context: .
dockerfile: devops/frontend/Dockerfile
args:
APP_ENV: ${APP_ENV}
PORT_FRONTEND: ${PORT_FRONTEND}
environment:
- CYPRESS_INSTALL_BINARY=0
- APP_ENV=${APP_ENV}
- PORT_FRONTEND=${PORT_FRONTEND}
image: frontend_image
container_name: frontend_container
ports:
- '${PORT_FRONTEND}:${PORT_FRONTEND}'
depends_on:
- backend
redis:
image: redis:7
environment:
- REDIS_PORT=${REDIS_PORT}
container_name: redis_container
volumes:
- redis_data:/app/redis-data
volumes:
source_code_volume:
name: source_code_volume
redis_data:
name: redis_data