-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (45 loc) Β· 1.08 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'
services:
mysql:
container_name: mysql
image: mysql:8.0
restart: always
environment:
MYSQL_USER: ${MYSQL_USER}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
volumes:
- ./splanet-db/mysql:/var/lib/mysql
ports:
- 3306:3306
networks:
- splanet
redis:
container_name: redis
image: redis
ports:
- 6379:6379
networks:
- splanet
# κ°λ°ν λλ μ£Όμμ²λ¦¬νμ¬ λ‘μ»¬λ‘ κ°λ°ν©λλ€.
# springboot:
# container_name: springboot_splanet
# build:
# context: .
# dockerfile: Dockerfile
# restart: always
# depends_on:
# - mysql
# ports:
# - 8080:8080
# environment:
# SPRING_DATASOURCE_URL: ${SPRING_DATASOURCE_URL}
# SPRING_DATASOURCE_USERNAME: ${SPRING_DATASOURCE_USERNAME}
# SPRING_DATASOURCE_PASSWORD: ${SPRING_DATASOURCE_PASSWORD}
# SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE}
# networks:
# - splanet
networks:
splanet:
driver: bridge