-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (46 loc) · 966 Bytes
/
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
version: "3.8"
services:
spring:
image: "spring-container"
container_name: spring-ias-prod-container
build:
context: .
dockerfile: Dockerfile
ports:
- "9001:9001"
redis:
image: "redis:latest"
container_name: redis-container
labels:
- "name=redis"
- "mode=standalone"
environment:
REDIS_PASSWORD: test
networks:
- ias
redis-cache:
image: "redis:latest"
container_name: redis-cache-container
labels:
- "name=redis"
- "mode=standalone"
environment:
REDIS_PASSWORD: iknow@1234
networks:
- ias
mysql:
image: "mysql:8.0"
container_name: mysql-container
volumes:
- ./mysql/dbdata:/var/lib/mysql
- ./mysql/logs:/var/log/mysql
environment:
MYSQL_ROOT_PASSWORD: test
MYSQL_USER: test
MYSQL_PASSWORD: test
MYSQL_DATABASE: test
networks:
- ias
networks:
ias:
driver: bridge