-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
61 lines (56 loc) · 1.38 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
57
58
59
60
61
version: "3.7"
services:
db:
platform: linux/x86_64
image: mysql:5.7
command: [ "--lower_case_table_names=1",
"--ignore-db-dir=lost+found",
"--character-set-server=utf8,
--collation-server=utf8_general_ci" ]
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: verpic_db
MYSQL_USER: verpic
MYSQL_PASSWORD: verpic
restart: always
volumes:
- "./database/verpic_db/:/application"
ports:
- "3306:3306"
container_name: verpic-mysql
networks:
- backend-network
spring-boot:
image: gcr.io/verpic-backend/image-built-with-jib
ports:
- "8080:8080"
container_name: verpic-backend
restart: always
depends_on:
- db
environment:
SPRINGBOOT_DB_USER: verpic
SPRINGBOOT_DB_PASSWORD: verpic
SPRING_DATASOURCE_URL: jdbc:mysql://db:3306/verpic_db?useSSL=false
networks:
- backend-network
- frontend-network
mongodb:
image: mongo:latest
environment:
MONGO_DB_USERNAME: verpic
MONGO_DB_PASSWORD: verpic
volumes:
- "./database/mongodb/:/application"
#command: mongod --smallfiles --logpath=/dev/null # --quiet
container_name: verpic-mongo
restart: always
ports:
- "27017:27017"
networks:
- backend-network2
hostname: "mongo"
networks:
backend-network:
backend-network2:
frontend-network: