-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-dev.yml
59 lines (54 loc) · 1.36 KB
/
docker-compose-dev.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
version: '3.8'
networks:
photosmap-network:
driver: bridge
services:
db:
image: mysql:8.0.33
container_name: db
restart: unless-stopped
ports:
- "3306:3306"
networks:
- photosmap-network
volumes:
- ./photosmap/volume/db/etc/mysql/conf.d:/etc/mysql/conf.d
- ./photosmap/volume/db/var/lib/mysql:/var/lib/mysql
- ./photosmap/volume/db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
environment:
- TZ=Asia/Seoul
- MYSQL_DATABASE=photos_map
- MYSQL_ROOT_PASSWORD=root1234
- MYSQL_USER=user1
- MYSQL_PASSWORD=1234
app:
build:
context: .
dockerfile: Dockerfile
args:
PROFILES: dev
image: photosmap:latest
container_name: photosmap
restart: always
ports:
- '8080:8080'
networks:
- photosmap-network
volumes:
- ./photosmap/volume/app:/app
depends_on:
- db
- redis
redis:
image: redis:alpine
container_name: redis
restart: always
ports:
- '6379:6379'
networks:
- photosmap-network
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- ./photosmap/volume/redis/data:/data
- ./photosmap/volume/redis/usr/local/etc/redis/redis.conf:/usr/local/etc/redis/redis.conf
- ./photosmap/volume/redis/etc/redis/users.acl:/etc/redis/users.acl