You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
872 B

version: "3"
services:
redis:
image: redis:latest
container_name: kac_redis
command: redis-server --requirepass palnet!234 --port 6379
ports:
- 6379:6379
database:
image: mysql
container_name: kac-db
environment:
- MYSQL_ROOT_HOST=%
- MYSQL_ROOT_PASSWORD=palnet!234
- MYSQL_DATABASE=pav_kac
8 months ago
- MYSQL_USER=kac
- MYSQL_PASSWORD=palnet!234
ports:
- 13306:3306
volumes:
- ./db/data:/var/lib/mysql
# restart: always
networks:
- pav_kac_networks
kac-app:
build:
context: ./app/kac-app
dockerfile: Dockerfile
# restart: always
depends_on:
- database
ports:
- 18080:8080
container_name: kac-app
environment:
SPRING_PROFILES_ACTIVE: dev
networks:
- pav_kac_networks
networks: #네트워크 설정
pav_kac_networks: