-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
86 lines (78 loc) · 2.3 KB
/
docker-compose.yml
File metadata and controls
86 lines (78 loc) · 2.3 KB
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
version: '3.9'
services:
web-nginx:
container_name: ${DOCKER_NAME}-web-nginx
build:
context: .
dockerfile: .docker/web-nginx/Dockerfile
ports:
- 80:80
- 433:433
volumes:
- .docker/web-nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- ./:/var/www/html/
links:
- web-php-fpm
web-php-fpm:
container_name: ${DOCKER_NAME}-web-php-fpm
build:
context: .
dockerfile: .docker/web-php-fpm/Dockerfile
ports:
- 9000:9000
volumes:
- ./:/var/www/html/
db-mysql:
container_name: ${DOCKER_NAME}-db-mysql
image: mysql:8.0.25
command:
- mysqld
- '--default-authentication-plugin=mysql_native_password'
- '--character-set-server=utf8'
- '--collation-server=utf8_unicode_ci'
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD_ROOT}'
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
volumes:
- db-mysql:/var/lib/mysql
ports:
- '3306:3306'
extra_hosts:
- "host.docker.internal:host-gateway"
db-redis:
container_name: ${DOCKER_NAME}-db-redis
image: redis:7.2.1
volumes:
- db-redis:/data
ports:
- '6379:6379'
extra_hosts:
- "host.docker.internal:host-gateway"
db-memcached:
container_name: ${DOCKER_NAME}-db-memcached
image: memcached:1.6.22
environment:
MEMCACHED_MAX_CONNECTIONS: 2000
ports:
- '11211:11211'
extra_hosts:
- "host.docker.internal:host-gateway"
db-mongodb:
container_name: ${DOCKER_NAME}-db-mongodb
image: mongo:4.2.3-bionic
environment:
MONGO_INITDB_DATABASE: '${DB_DATABASE}'
MONGO_INITDB_ROOT_USERNAME: '${DB_USERNAME}'
MONGO_INITDB_ROOT_PASSWORD: '${DB_PASSWORD}'
volumes:
- db-mongodb:/data/db
ports:
- '27017:27017'
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
db-mysql:
db-redis:
db-mongodb: