-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdocker-compose.yml
103 lines (94 loc) · 2.61 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '3'
services:
hcms_db:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: 'hcms_database'
MYSQL_USER: 'hcms_website'
# You can use whatever password you like
MYSQL_PASSWORD: 'website789'
# Password for root access
MYSQL_ROOT_PASSWORD: 'password'
ports:
- '3306:3306'
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 15s
retries: 10
phpmyadmin:
image: phpmyadmin/phpmyadmin
depends_on:
hcms_db:
condition: service_healthy
environment:
PMA_HOST: hcms_db
PMA_PORT: 3306
PMA_ARBITRARY: 1
UPLOAD_LIMIT: 2G
restart: always
ports:
- 8183:80
hcms_migration:
image: ttimot24/horizont-cms:latest
depends_on:
hcms_db:
condition: service_healthy
command: sh -c 'php artisan migrate --no-interaction --force && php artisan db:seed --no-interaction --force && php artisan --version'
environment:
DB_HOST: 'hcms_db'
DB_CONNECTION: 'mysql'
DB_USERNAME: 'root'
DB_PASSWORD: 'password'
DB_DATABASE: 'hcms_database'
DB_TABLE_PREFIX: 'hcms_'
LOG_CHANNEL: stderr
hcms_admin_user:
image: ttimot24/horizont-cms:latest
depends_on:
hcms_migration:
condition: service_completed_successfully
command: sh -c 'php artisan hcms:user --create-admin --name=Administrator [email protected] --username=admin --password=admin1'
environment:
INSTALLED: 'true'
DB_HOST: 'hcms_db'
DB_CONNECTION: 'mysql'
DB_USERNAME: 'root'
DB_PASSWORD: 'password'
DB_DATABASE: 'hcms_database'
DB_TABLE_PREFIX: 'hcms_'
LOG_CHANNEL: stderr
hcms_web:
build:
context: .
dockerfile: Dockerfile
image: ttimot24/horizont-cms:latest
restart: always
depends_on:
hcms_admin_user:
condition: service_completed_successfully
environment:
INSTALLED: 'true'
DB_HOST: 'hcms_db'
DB_CONNECTION: 'mysql'
DB_USERNAME: 'root'
DB_PASSWORD: 'password'
DB_DATABASE: 'hcms_database'
DB_TABLE_PREFIX: 'hcms_'
LOG_CHANNEL: stderr
ports:
- '8099:80'
volumes:
- ./app:/var/www/html/app
- ./config:/var/www/html/app/config
- ./routes:/var/www/html/routes
- ./resources:/var/www/html/resources
- ./themes:/var/www/html/themes
- ./plugins:/var/www/html/plugins
volumes:
- hcms-db:/var/lib/mysql
volumes:
hcms-db:
networks:
default:
name: hcms-network