-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
79 lines (73 loc) · 1.58 KB
/
compose.yaml
File metadata and controls
79 lines (73 loc) · 1.58 KB
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
services:
nginx:
build:
context: ./docker/nginx
volumes:
- .:/api
- .env:/api/.env
- .env.local:/api/.env.local
container_name: nginx-api
restart: always
ports:
- "8081:80"
depends_on:
- php-fpm
php-fpm:
build:
context: ./docker/php-fpm
volumes:
- .:/api
- .env:/api/.env
- .env.local:/api/.env.local
container_name: php-fpm-api
restart: always
depends_on:
- mysql
php-cli:
build:
context: ./docker/php-cli
working_dir: /api
volumes:
- .:/api
- .env:/api/.env
- .env.local:/api/.env.local
command: sh -c "composer install"
container_name: php-cli-api
depends_on:
- php-fpm
mysql:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
volumes:
- mysql_api:/var/lib/mysql
container_name: mysql-api
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 10
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "8082:80"
restart: no
environment:
PMA_HOST: mysql
depends_on:
mysql:
condition: service_healthy
mailer:
image: axllent/mailpit
ports:
- "1025"
- "8025"
environment:
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
volumes:
mysql_api: