-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (45 loc) · 941 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
47
48
49
version: '3.8'
services:
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- '8080:80'
depends_on:
- frontend
- backend
restart: always
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
environment:
- HOST=0.0.0.0
- DANGEROUSLY_DISABLE_HOST_CHECK=true
volumes:
- /home/node/app/node_modules
- ./frontend:/home/node/app
restart: always
backend:
build:
context: ./backend
dockerfile: Dockerfile
environment:
- PORT=8000
- DB_FILE=db/dev.db
- JWT_SECRET=VgQEn4xs1TYL++w7
- JWT_EXPIRES_IN=604800
- SCHEMA=custom_schema_name
volumes:
- ./backend:/home/node/app
- /home/node/app/node_modules
restart: always
tests:
build:
context: ./tests
dockerfile: Dockerfile.test
depends_on:
- backend
- frontend
- nginx