-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
58 lines (56 loc) · 1.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
version: '3'
services:
moe:
container_name: misaka
image: docker-registry.yuri.moe/moegirl-ios-relay-server/image
environment:
PORT: 8888
DB_HOST: db
DB_PORT: 3306
DB_USER: "${MYSQL_USER}"
DB_PASS: "${MYSQL_PASSWORD}"
DB_NAME: "${MYSQL_DB_NAME}"
API_URL: "${API_URL}"
BACKEND_URL: "${BACKEND_URL}"
CRAWLER_UA: "Moegirl iOS Proxy"
volumes:
- ./public_html:/usr/src/app/main
ports:
- ${PROXY_ADDRESS}:8888
depends_on:
- db
restart: always
pma:
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: db
PMA_ABSOLUTE_URI: "${PMA_ABSOLUTE_URI}"
PMA_PORT: 3306
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
ports:
- ${PMA_ADDRESS}:80
links:
- db:db
depends_on:
- db
restart: always
db:
image: mysql:latest
ports:
- ${MYSQL_ADDRESS}:3306
expose:
- 3306
command: [
'--default_authentication_plugin=mysql_native_password',
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_ci'
]
volumes:
- ./db_data:/var/lib/mysql
environment:
MYSQL_HOST: db:3306
MYSQL_DATABASE: "${MYSQL_DB_NAME}"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
restart: always