forked from siberfx/sokeio-admin
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (66 loc) · 1.57 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
services:
sokeio-reverb:
container_name: sokeio-reverb
build:
context: .
dockerfile: ./Dockerfile
target: php
args:
- APP_ENV=${APP_ENV}
environment:
- APP_ENV=${APP_ENV}
- DB_CONNECTION:${DB_CONNECTION}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_DATABASE=${DB_DATABASE}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
working_dir: /var/www
ports:
- 9000:8080
volumes:
- .:/var/www
links:
- sokeio-reverb-db
depends_on:
sokeio-reverb-db:
condition: service_healthy
sokeio-reverb-db:
image: arm64v8/mysql:8.0.37
# image: mysql:8.4.0
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: sokeio-reverb
MYSQL_USER: sokeio-reverb
MYSQL_PASSWORD: sokeio-reverb@123
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
ports:
- '3307:3306'
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
timeout: 20s
retries: 10
sokeio-reverb-redis:
image: redis/redis-stack:latest
restart: always
volumes:
- ./redis_data:/data
environment:
REDIS_ARGS: "--requirepass sokeio-reverb@123456"
ports:
- 6379:6379
- 8001:8001
phpmyadmin:
image: phpmyadmin
restart: always
ports:
- 8081:80
environment:
- PMA_ARBITRARY=1
depends_on:
sokeio-reverb-db:
condition: service_healthy
networks:
default:
driver: bridge