-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (56 loc) · 1.22 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
49
50
51
52
53
54
55
56
version: '3.4'
services:
redis:
container_name: redis
image: redis:latest
ports:
- "6379:6379"
volumes:
- wfdf:/data/redis
mongodb:
container_name: mongodb
image: mongo:latest
restart: always
ports:
- "27017:27017"
volumes:
- wfdf:/data/db
scheduler:
image: jtbry/ofelia:latest
container_name: scheduler
depends_on:
- mongodb
command: daemon --config=/etc/ofelia/config.ini
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./ofelia.ini:/etc/ofelia/config.ini
api:
container_name: web-api
image: web-api
depends_on:
- mongodb
build:
context: ./src/
dockerfile: ./Wfdf.Api/Dockerfile
environment:
- MongoDb__ConnectionString=mongodb://mongodb:27017/
- MongoDb__DatabaseName=wfdf
- Redis__ConnectionString=redis:6379
- ReactAppDomain=http://localhost
ports:
- "8080:8080"
client:
container_name: client
image: client
depends_on:
- api
build:
context: ./src/client
dockerfile: Dockerfile
args:
- API_URL=http://localhost:8080
ports:
- "80:80"
volumes:
wfdf:
external: false