-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 1.39 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
version: '3'
services:
web:
image: nginx:latest
container_name: slimork-web
restart: always
ports:
- "8080:80"
- "3000:443"
volumes:
- "./docker/etc/nginx/default.conf:/etc/nginx/conf.d/default.conf"
- ".:/slimork"
depends_on:
- php
- mysqldb
- maildev
php:
build: ./docker/build/php
container_name: slimork-php
restart: always
expose:
- "9000"
volumes:
- "./docker/etc/php/php-default.ini:/usr/local/etc/php/conf.d/php-default.ini"
- "./docker/etc/php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini"
- "./docker/etc/php/exim4.conf:/etc/exim4/exim4.conf"
- "./docker/tmp/php/xdebug:/tmp/php/xdebug"
- ".:/slimork"
mysqldb:
image: mysql:5.6
container_name: slimork-mysqldb
restart: always
ports:
- "3306:3306"
volumes:
- "./docker/var/mysql/data:/var/lib/mysql"
environment:
- MYSQL_ROOT_PASSWORD=12345678
- MYSQL_DATABASE=slimork
- MYSQL_USER=slimork
- MYSQL_PASSWORD=12345678
maildev:
image: djfarrelly/maildev
container_name: slimork-maildev
expose:
- "25"
ports:
- "8081:80"