-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (45 loc) · 1.1 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
version: "3.9"
services:
web: # AKA client
container_name: tcp-web
stdin_open: true
build:
context: ./web
args:
PORT: ${WEB_PORT:-4191}
VITE_APP_API_URL: ${API_URL:-http://localhost:4190}
depends_on:
- api
volumes:
- ./web:/app/web
- /app/web/node_modules
- /app/web/dist
ports:
- ${WEB_PORT:-4191}:${WEB_PORT:-4191}
api:
container_name: tcp-api
stdin_open: true
build:
context: ./api
args:
NODE_ENV: ${ENV:-production}
PORT: ${API_PORT:-4190}
API_URL: ${API_URL:-http://localhost:4190}
DATABASE_URL: ${DATABASE_URL:-mongodb://mongo/the-clipping-project}
TEST_DATABASE_URL: ${TEST_DATABASE_URL:-mongodb://mongo/the-clipping-project-test}
depends_on:
- mongo
volumes:
- ./api:/app/api
- ./clips:/api/videos
- /app/api/node_modules
- /app/api/dist
ports:
- ${API_PORT:-4190}:${API_PORT:-4190}
mongo:
image: mongo:latest
container_name: tcp-database
volumes:
- mongo-data:/data/db
volumes:
mongo-data: