-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (58 loc) · 1.24 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (58 loc) · 1.24 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
version: '3'
services:
web:
build:
context: ./docker/web
dockerfile: Dockerfile
ports:
- 8080:80
volumes:
- ./data/files/static:/data/files/static
- ./data/files/logs:/data/files/logs
- ./app/mt/mt-static:/data/files/mt-static
env_file: ./.env
depends_on:
- php
- mt
php:
build:
context: ./docker/php
dockerfile: Dockerfile
expose:
- 9000
volumes:
- ./data/files/static:/data/files/static
restart: always
env_file: ./.env
db:
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: p@ssw0rd
MYSQL_USER: admin
MYSQL_PASSWORD: p@ssw0rd
MYSQL_DATABASE: mt
ports:
- 13306:3306
volumes:
- ./docker/db/conf:/etc/mysql/conf.d
- ./data/db:/var/lib/mysql
env_file: ./.env
mailcatcher:
image: schickling/mailcatcher
ports:
- 8081:1080
mt:
build:
context: ./docker/mt
dockerfile: Dockerfile
volumes:
- ./data/files/static:/data/files/static
- ./data/files/logs:/data/files/logs
- ./app/mt/mt-static:/data/files/mt-static
- ./app/mt:/app/mt
depends_on:
- db
env_file: .env
ports:
- 5000:5000