-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
89 lines (84 loc) · 2.36 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
81
82
83
84
85
86
87
88
89
version: "3.7"
services:
php:
image: "tinyframework-authentication:latest"
build: "."
environment:
- "APP_URL=http://localhost:8000"
- "APP_ENV=dev"
- "APP_DEBUG=true"
- "REDIS_HOST=redis"
- "REDIS_PORT=6379"
- "DATABASE_DRIVER=mysql"
- "BROADCAST_DRIVER=redis"
- "CACHE_DRIVER=none"
- "QUEUE_DRIVER=sync"
- "MYSQL_HOST=mysql"
- "MYSQL_USERNAME=tinyframework"
- "MYSQL_PASSWORD=tinyframework"
- "MYSQL_DATABASE=tinyframework"
- "SMTP_HOST=smtp"
- "SMTP_PORT=1025"
- "SMTP_ENCRYPTION=none"
- "MAIL_FROM_NAME=TinyFramework"
- "SWOOLE_HOST=0.0.0.0"
- "SWOOLE_PORT=8000"
depends_on:
- "mysql"
- "redis"
- "smtp"
ports:
- "8000:8000"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- "~/.composer/auth.json:/home/app/.composer/auth.json"
- "~/.composer/auth.json:/home/app/.config/composer/auth.json"
- "./:/app/custom-plugins/tinyframework-authentication:rw"
- "~/PrivateWorkspace/tinyframework:/app/vendor/sgc-fireball/tinyframework:ro"
networks:
- "tinyframework-authentication"
mysql:
image: "mariadb:10.5"
environment:
- "MYSQL_ROOT_PASSWORD=root"
- "MYSQL_DATABASE=tinyframework"
- "MYSQL_USER=tinyframework"
- "MYSQL_PASSWORD=tinyframework"
ports:
- "3306:3306" # mysql
healthcheck:
test: [ "CMD", "mysqlcheck", "-h", "localhost", "-P", "3306", "-u", "shopware", "-pshopware", "shopware" ]
interval: "30s"
timeout: "5s"
retries: 60
networks:
- "tinyframework-authentication"
smtp:
image: "axllent/mailpit:latest"
ports:
- "1025:1025" # smtp
- "8025:8025" # http
healthcheck:
test: [ "CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8025/" ]
interval: "30s"
timeout: "5s"
retries: 60
networks:
- "tinyframework-authentication"
redis:
image: "redis:4.0.14-alpine3.9"
ports:
- "6379:6379" # redis
healthcheck:
test: [ "CMD", "redis-cli", "PING" ]
interval: "30s"
timeout: "5s"
retries: 60
networks:
- "tinyframework-authentication"
networks:
tinyframework-authentication:
driver: "bridge"
name: "tinyframework-authentication"