-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
81 lines (73 loc) · 1.81 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
# http://localhost:8080/
# docker compose exec app sh
# docker compose up -d --no-deps --build app
app:
build:
context: .
dockerfile: ./docker/php82.Dockerfile
depends_on:
- dbmsql
ports:
- "8080:8000"
command: php artisan serve --host 0.0.0.0
environment:
APP_URL: http://localhost:8080/
DB_CONNECTION: mysql
DB_HOST: dbmsql:3306
DB_NAME: ${MYSQL_DB_NAME}
DB_USER: ${MYSQL_USER}
DB_PASSWORD: ${MYSQL_PASSWORD}
working_dir: /app
volumes:
- ./code/:/app
# cli tools
#
# docker compose exec cli bash
# docker compose up -d --no-deps --build cli
cli:
# image: ubuntu:latest
# working_dir: /app
build:
context: .
dockerfile: ./docker/cli.Dockerfile
volumes:
- ./:/app
# command: tail -f /dev/null
# DB manager
# http://127.0.0.1:8000
# docker compose exec adminer sh
# docker compose up -d --no-deps --build adminer
adminer:
image: wodby/adminer
depends_on:
- dbmsql
# networks:
# - internal
restart: unless-stopped
ports:
- 8000:9000
environment:
ADMINER_DEFAULT_DB_HOST: dbmsql:3306
ADMINER_DEFAULT_DB_NAME: ${MYSQL_DB_NAME}
# volumes:
# - ./data:/app
# - ./docker/adminer/login-password-less.php:/var/www/html/plugins-enabled/login-password-less.php
# docker compose up -d --no-deps --build dbmsql
dbmsql:
image: mysql:8.0
restart: unless-stopped
# networks:
# - internal
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ${MYSQL_DB_NAME}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- ./data/dbmsql:/var/lib/mysql
# docker compose up -d --no-deps --build redis
redis:
image: redis
expose:
- 6379