-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (47 loc) · 1.12 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
version: '2'
services:
caff-db:
image: mysql:8
container_name: caff-db
restart: always
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=caffstore
- MYSQL_USER=caffstore
- MYSQL_PASSWORD=caffstore
networks:
- caff-db-network
caff-parser:
build:
context: .
dockerfile: docker/native.Dockerfile
container_name: caff-parser
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
networks:
- caff-parser-network
caff-store:
build:
context: .
dockerfile: docker/backend.Dockerfile
container_name: caff-store
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
- spring.datasource.url=jdbc:mysql://caff-db:3306/caffstore
- spring.datasource.username=caffstore
- spring.datasource.password=caffstore
- spring.native.address=caff-parser:50051
ports:
- 8080:8080
networks:
- caff-parser-network
- caff-db-network
depends_on:
- caff-parser
- caff-db
networks:
caff-parser-network:
caff-db-network: