-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (50 loc) · 1.05 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
version: "3.8"
services:
app:
container_name: fineAnts_app
platform: linux/amd64
build: .
restart: always
ports:
- "8080:8080"
environment:
PROFILE: local
TZ: Asia/Seoul
DB_HOST: fineAnts_db
DB_PORT: 3306
DB_DATABASE: fineAnts
DB_USERNAME: admin
DB_PASSWORD: password1234!
REDIS_HOST: fineAnts_redis
REDOS_PORT: 6379
depends_on:
- redis
- db
networks:
- spring-net
db:
container_name: fineAnts_db
image: mysql:latest
ports:
- "3306:3306"
environment:
- MYSQL_USER=admin
- MYSQL_PASSWORD=password1234!
- MYSQL_ROOT_PASSWORD=password1234!
- MYSQL_DATABASE=fineAnts
command:
- '--local-infile=1'
networks:
- spring-net
redis:
container_name: fineAnts_redis
image: redis:latest
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf
ports:
- "6379:6379"
networks:
- spring-net
networks:
spring-net: