-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (55 loc) · 1.63 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
version: "3.1"
volumes:
db_data:
services:
webserver:
image: nginx:alpine
container_name: nginx-webserver
working_dir: /application
volumes:
- ${PWD-.}/../:/application
- ${PWD-.}/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "8080:80"
depends_on:
- "php-fpm"
php-fpm:
build: php-fpm
container_name: nginx-php-fpm
working_dir: /application
volumes:
- ${PWD-.}/../:/application
- ${PWD-.}/php-fpm/php-ini-overrides.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini
memory_database:
image: mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: mysql
MYSQL_USER: mysql
MYSQL_PASSWORD: mysql
MYSQL_DATABASE: ${name}_test
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci --init-connect='SET NAMES UTF8;' --innodb-flush-log-at-trx-commit=0
ports:
- "3307:3306"
tmpfs: /var/lib/mysql:rw
disk_database:
image: mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: mysql
MYSQL_USER: mysql
MYSQL_PASSWORD: mysql
MYSQL_DATABASE: ${name}_dev
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci --init-connect='SET NAMES UTF8;' --innodb-flush-log-at-trx-commit=0
ports:
- "3308:3306"
volumes:
- db_data:/var/lib/mysql
npm:
build: npm
container_name: npm
working_dir: /application
stdin_open: true
tty: true
volumes:
- ${PWD-.}/../:/application