-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
43 lines (43 loc) · 1.1 KB
/
docker-compose.yaml
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
services:
php-apache:
image: php-apache_im
build:
context: .
dockerfile: ./lib/docker/php-apache/Dockerfile
platform: linux/amd64
container_name: php-apache_im
ports:
- "9080:80"
- "11478:11478"
volumes:
- ./src:/var/www/html/src
restart: always
depends_on:
- db
db:
image: mysql:latest
platform: linux/amd64
restart: always
volumes:
- type: bind
source: ./lib/docker/mysql/initdb/sample_schema_mysql.sql
target: /docker-entrypoint-initdb.d/sample_schema_mysql.sql
- type: bind
source: ./lib/docker/mysql/db
target: /var/lib/mysql
- type: bind
source: ./lib/docker/mysql/conf/my.cnf
target: /etc/mysql/conf.d/my.cnf
environment:
MYSQL_DATABASE: test_db
MYSQL_ROOT_PASSWORD: im4135dev
MYSQL_USER: web
MYSQL_PASSWORD: password
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
ports:
- 127.0.0.1:13306:3306
# mailpit:
# image: axllent/mailpit
# ports:
# - "8025:8025"
# - "1025:1025"