-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
92 lines (79 loc) · 1.71 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
86
87
88
89
90
91
92
version: "3"
services:
hh-db:
container_name: hh-db
image: mysql/mysql-server:8.0
restart: always
ports:
- '3327:3306'
environment:
MYSQL_USER: "${DB_USERNAME}"
MYSQL_PASSWORD: "${DB_PASSWORD}"
MYSQL_DATABASE: "${DB_DATABASE}"
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
volumes:
- ./docker/db/:/var/lib/mysql
networks:
- hh-test
hh-nginx:
depends_on:
- hh-fpm
networks:
- hh-test
build:
context: ./
dockerfile: docker/nginx.docker
volumes:
- ./:/var/www
ports:
- "448:443"
- "88:80"
hh-fpm:
depends_on:
- hh-db
networks:
- hh-test
build:
context: ./
args:
USER_ID: ${USER_ID:-0}
GROUP_ID: ${GROUP_ID:-0}
dockerfile: docker/php-fpm.docker
volumes:
- ./:/var/www
environment:
- "DB_PORT=3306"
- "DB_HOST=hh-db"
hh-adminer:
image: adminer
restart: always
ports:
- 5067:8080
networks:
- hh-test
hh-cli:
container_name: hh-cli
restart: always
build:
context: ./
args:
USER_ID: ${USER_ID:-0}
GROUP_ID: ${GROUP_ID:-0}
dockerfile: php-cli.docker
volumes:
- ./:/var/www
- ./docker/composer:/var/composer
tty: true
environment:
- "DB_PORT=3306"
- "DB_HOST=hh-db"
- "COMPOSER_MEMORY_LIMIT=-1"
depends_on:
- hh-db
networks:
- hh-test
ports:
- "7010:8000"
networks:
hh-test:
driver: bridge