-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (46 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
50 lines (46 loc) · 1.06 KB
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
services:
db:
image: mysql:8.0.37
container_name: sonisori-mysql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- "3307:3306"
volumes:
- db_data:/var/lib/mysql
networks:
- sonisori-network
flyway:
image: flyway/flyway:8.0.4
container_name: sonisori-flyway
command: >
-url=jdbc:mysql://db:3306/${MYSQL_DATABASE}
-user=${MYSQL_USER}
-password=${MYSQL_PASSWORD}
-schemas=${MYSQL_DATABASE}
-table=flyway_schema_history
migrate
depends_on:
- db
volumes:
- ./src/main/resources/db/migration:/flyway/sql
networks:
- sonisori-network
redis:
image: redis:alpine
container_name: sonisori-redis
ports:
- "6379:6379"
command: [ "redis-server", "--appendonly", "yes" ]
volumes:
- redis_data:/data
networks:
- sonisori-network
networks:
sonisori-network:
volumes:
db_data:
redis_data: