forked from shotmap/shotmap-was
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
26 lines (24 loc) · 772 Bytes
/
docker-compose.yml
File metadata and controls
26 lines (24 loc) · 772 Bytes
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
version: '3.8'
services:
mysql:
image: mysql:8.0
container_name: shotmap-mysql
restart: unless-stopped
ports:
- "${DB_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
volumes:
- ./db/schema.sql:/docker-entrypoint-initdb.d/01-schema.sql
- ./db/data-attractions.sql:/docker-entrypoint-initdb.d/02-data-attractions.sql
- ./db/dummy-data-insert.sql:/docker-entrypoint-initdb.d/03-dummy-data.sql
command: --default-authentication-plugin=mysql_native_password
redis:
image: redis:7.2
container_name: shotmap-redis
restart: unless-stopped
ports:
- "${REDIS_PORT}:${REDIS_PORT}"