-
Notifications
You must be signed in to change notification settings - Fork 1
/
local-docker-compose.yml
77 lines (77 loc) · 1.92 KB
/
local-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
version: '3'
services:
db:
image: mysql/mysql-server:8.0
command: --default-authentication-plugin=mysql_native_password --innodb-thread-concurrency=0 --sort_buffer_size=512K --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
container_name: db
volumes:
- db_data:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
- ./docker/mysql/mysql.conf:/etc/mysql/my.cnf
- ./docker/mysql/readonly.sql:/docker-entrypoint-initdb.d/readonly.sql
restart: always
environment:
- MYSQL_DATABASE=nouse
- MYSQL_ROOT_HOST=127.0.0.1
- MYSQL_USER=userDocker
- MYSQL_PASSWORD=passDocker
- MYSQL_ROOT_PASSWORD=rootPass
env_file:
- nouseprod-local.env
ports:
- 3306:3306
nouse:
build:
context: .
dockerfile: ./Dockerfile.local
container_name: nouse-container
restart: always
ports:
- 80:80
- 420:420
- 419:419
depends_on:
- db
environment:
- MYSQL_HOSTNAME=db
- MYSQL_DATABASE=nouse
- MYSQL_USER=userDocker
- MYSQL_PASSWORD=passDocker
env_file:
- nouseprod-local.env
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./html:/var/www/html
- ./composer:/var/www/composer
phpmyadmin:
image: phpmyadmin/phpmyadmin:5.1
container_name: phpmyadmin
environment:
- PMA_HOST=db
- PMA_PORT=3306
- PMA_ARBITRARY=1
- PMA_USER=userDocker
- PMA_PASSWORD=passDocker
restart: always
ports:
- 800:80
depends_on:
- db
volumes:
- /sessions
compressor:
image: ghcr.io/yorknouse/image-compressor:latest
restart: unless-stopped
depends_on:
- db
environment:
- MYSQL_HOSTNAME=db
- MYSQL_DATABASE=nouse
- MYSQL_USER=userDocker
- MYSQL_PASSWORD=passDocker
- SLEEP_TIME=60
env_file:
- nouseprod-local.env
volumes:
db_data: { }