-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
85 lines (85 loc) · 2.29 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
version: '3.9'
services:
app:
image: jc21/nginx-proxy-manager:latest
container_name: nginx-proxy-manager
restart: unless-stopped
ports:
- ${NPM_PORT}:80
- ${NPM_PORT_ADMIN}:81
- ${NPM_PORT_SSL}:443
# - '21:21' # FTP
environment:
DB_MYSQL_HOST: db
DB_MYSQL_PORT: 3306
DB_MYSQL_USER: ${NPM_DB_USER}
DB_MYSQL_PASSWORD: ${NPM_DB_PASSWORD}
DB_MYSQL_NAME: ${NPM_DB_NAME}
# DISABLE_IPV6: 'true'
volumes:
- ./nginx-proxy-manager/data:/data
- ./nginx-proxy-manager/letsencrypt:/etc/letsencrypt
- ./nginx-proxy-manager/data/log:/var/log/nginx
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:81"]
interval: 30s
timeout: 10s
retries: 5
depends_on:
db:
condition: service_healthy
phpmyadmin:
condition: service_healthy
networks:
- env-server
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: phpmyadmin
restart: always
ports:
- ${PMA_PORT}:80
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
PMA_ARBITRARY: ${PMA_ARBITRARY}
FORCE_SSL: ${PMA_FORCE_SSL}
PMA_ABSOLUTE_URI: ${PMA_ABSOLUTE_URI}
PMA_THEME: Bootstrap
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 5
depends_on:
db:
condition: service_healthy
networks:
- env-server
db:
image: mysql:latest
container_name: mysql
restart: always
command: ["mysqld", "--default-authentication-plugin=mysql_native_password", "--log-error-verbosity", "--log-bin-index=/tmp/tmp.5FTdABPAKI"]
ports:
- ${MYSQL_PORT}:3306
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${NPM_DB_NAME}
MYSQL_USER: ${NPM_DB_USER}
MYSQL_PASSWORD: ${NPM_DB_PASSWORD}
MYSQL_INITDB_SKIP_TZINFO: 1
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/log:/var/log/mysql
- ./mysql/conf.d:/etc/mysql/conf.d
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h localhost --silent"]
interval: 30s
timeout: 10s
retries: 5
networks:
- env-server
networks:
env-server:
name: ${NETWORK_NAME}
driver: bridge