-
Notifications
You must be signed in to change notification settings - Fork 157
/
Copy pathdocker-compose.yml
53 lines (47 loc) · 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
49
50
51
52
53
# see https://docs.docker.com/compose/compose-file/compose-versioning/
version: "3.5" # specify docker-compose version, v3.5 is compatible with docker 17.12.0+
# Define the services/containers to be run
services:
redis:
image: redis
ports:
- "6379:6379"
networks:
- backend
mongodb:
image: mongo
volumes:
- mongodata:/data/db
ports:
- "27017:27017"
networks:
- backend
client:
image: hantsy/angular-spring-reactive-sample-client
environment:
- "BACKEND_API_URL=http://api:8080"
ports:
- "80:80"
depends_on:
- api
networks:
- frontend
- backend
api:
image: hantsy/angular-spring-reactive-sample-server
environment:
- "SPRING_DATA_MONGODB_URI=mongodb://mongodb:27017/blog"
ports:
- "8080:8080"
depends_on:
- mongodb
networks:
- backend
volumes:
mongodata:
# driver: local-persist
# driver_opts:
# mountpoint: ./data
networks:
frontend:
backend: