forked from orisintel/laravel-online-migrator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 1.03 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
version: "3.7"
services:
app:
environment:
- DB_CONNECTION=mysql
- DB_DATABASE=online_migrator_ci
- DB_PASSWORD=root
- DB_USERNAME=root
- DB_HOST=online-migrator-db
build:
context: ./
dockerfile: ./docker/Dockerfile
image: online-migrator
container_name: online-migrator-app
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./:/var/www
networks:
- online-migrator
db:
image: mysql/mysql-server:8.0.27
container_name: online-migrator-db
restart: unless-stopped
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: online_migrator_ci
MYSQL_USER: admin
MYSQL_PASSWORD: dev
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_HOST: '%'
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- ./docker/mysql:/docker-entrypoint-initdb.d:delegated,ro
networks:
- online-migrator
networks:
online-migrator:
driver: bridge