-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (38 loc) · 871 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (38 loc) · 871 Bytes
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
version: '3.7'
services:
frontend:
build:
context: "./client"
args:
VITE_FIREBASE_APIKEY: ${VITE_FIREBASE_APIKEY}
VITE_API_URI: ${VITE_API_URI}
VITE_HF_ACCESS_TOKEN: ${VITE_HF_ACCESS_TOKEN}
ports:
- "5173:80"
env_file:
- './client/.env'
backend:
build:
context: './backend'
ports:
- "3000:3000"
env_file:
- './backend/.env'
depends_on:
- mongo
mongo:
image: mongo:latest
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME_FILE: /run/secrets/mongo_username
MONGO_INITDB_ROOT_PASSWORD_FILE: /run/secrets/mongo_password
MONGO_INITDB_DATABASE: Blog
secrets:
- mongo_username
- mongo_password
secrets:
mongo_username:
file: ./mongo_username.txt
mongo_password:
file: ./mongo_password.txt