This repository has been archived by the owner on Aug 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
65 lines (54 loc) · 2.02 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
62
63
64
65
version: '3'
services:
web:
image: manga-tracker.local
hostname: manga-tracker.local
# build a custom image
build:
context: .
dockerfile: .docker/web.DockerFile
command: bash -c '/app/.docker/wait-for-it.sh db:3306 -- php public/index.php admin/migrate && exec apache2-foreground'
ports:
- 20180:80
# volumes are like shared folders
# container will see your local code changes
volumes:
- ./application/config:/app/application/config
- ./application/controllers:/app/application/controllers
- ./application/core:/app/application/core
- ./application/helpers:/app/application/helpers
- ./application/hooks:/app/application/hooks
- ./application/language:/app/application/language
- ./application/libraries:/app/application/libraries
- ./application/migrations:/app/application/migrations
- ./application/models:/app/application/models
- ./application/tests/controllers:/app/application/tests/controllers
- ./application/tests/core:/app/application/tests/core
- ./application/tests/helpers:/app/application/tests/helpers
- ./application/tests/libraries:/app/application/tests/libraries
- ./application/tests/models:/app/application/tests/models
- ./application/views:/app/application/views
- ./public/assets/img:/app/public/assets/img
- ./public/assets/js:/app/public/assets/js
- ./public/assets/less:/app/public/assets/less
- ./public/userscripts:/app/public/userscripts
depends_on:
- db
links:
- db
environment:
CI_ENV: development
db:
image: mysql:5.7
ports:
- 33306:3306
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --skip-character-set-client-handshake
# the mysql image uses these to create database and users
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_DATABASE: mangatracker_development
MYSQL_USER: mt_dev
MYSQL_PASSWORD: dev-password