-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (43 loc) · 1.04 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
version: "3.8"
services:
kanban-backend:
restart: always
depends_on:
- mysqldb
ports:
- 8000:8000
build:
context: .
dockerfile: Dockerfile
volumes:
- $LARAVEL_PROJECT_PATH:/var/www
env_file:
- ./.env
user: "${UID}:${GID}"
mysqldb:
image: mysql:5.7
restart: always
env_file: ./.env
environment:
- MYSQL_ROOT_USER=$DB_USERNAME
- MYSQL_ROOT_PASSWORD=$DB_PASSWORD
- MYSQL_DATABASE=$DB_DATABASE
ports:
- $DB_PORT:$DB_PORT
volumes:
- db:/var/lib/mysqldata
mysqldb_testing:
image: mysql:5.7
restart: always
environment:
- MYSQL_ROOT_PASSWORD=123
- MYSQL_DATABASE=testing
- MYSQL_USER=test
- MYSQL_PASSWORD=123
ports:
- "3307:3306"
volumes:
- db_testing:/var/lib/mysqldata
volumes:
db:
db_testing: