-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (45 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
55 lines (45 loc) · 1.03 KB
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
services:
reader-backend:
container_name: reader-backend
restart: unless-stopped
depends_on:
- reader-db
build:
context: backend
dockerfile: Dockerfile
environment:
- USER_NAME=demouser
- USER_PASSWORD=demouser
- BOOK_DIR=/books
- DB_HOST=192.168.0.120
- DB_PORT=27018
ports:
- "5500:5500"
volumes:
- ~/storage/public/books/:/books:ro
reader-db:
image: mongo
container_name: reader-db
restart: unless-stopped
ports:
- 27018:27017
volumes:
- ./mongo/prod:/data/db
# - /etc/timezone:/etc/timezone:ro
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
reader-frontend:
container_name: reader-frontend
restart: unless-stopped
depends_on:
- reader-backend
build:
context: frontend
dockerfile: Dockerfile
args:
- REACT_APP_BACKEND=http://192.168.0.120:5500/
ports:
- 6600:80
environment:
NODE_ENV: production