-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (41 loc) · 1.08 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
services:
frontend:
build:
context: ./ui
dockerfile: Dockerfile
args:
- FRONTEND_PORT=${FRONTEND_PORT}
- BACKEND_PORT=${BACKEND_PORT}
- BACKEND_HOST=${BACKEND_HOST}
image: vectorinstitute/adrenaline:ui-${BUILD_ID}
env_file: .env.production
ports:
- "${FRONTEND_PORT}:${FRONTEND_PORT}"
environment:
- NEXT_PUBLIC_BACKEND_HOST=${BACKEND_HOST}
- NEXT_PUBLIC_BACKEND_PORT=${BACKEND_PORT}
- NEXT_PUBLIC_FRONTEND_PORT=${FRONTEND_PORT}
depends_on:
- backend
networks:
- app-network
backend:
build:
context: ./adrenaline
dockerfile: Dockerfile
args:
- BACKEND_PORT=${BACKEND_PORT}
- FRONTEND_PORT=${FRONTEND_PORT}
image: vectorinstitute/adrenaline:backend-${BUILD_ID}
env_file: .env.production
ports:
- "${BACKEND_PORT}:${BACKEND_PORT}"
environment:
- BACKEND_PORT=${BACKEND_PORT}
- FRONTEND_PORT=${FRONTEND_PORT}
- JWT_SECRET_KEY=${JWT_SECRET_KEY}
networks:
- app-network
networks:
app-network:
driver: bridge