This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·82 lines (79 loc) · 2.83 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
version: "2.2"
services:
composer:
image: composer/composer
container_name: composer
command: [ "composer", "install" ]
volumes:
- ./docker/composer/conf/composer.json:/app/composer.json:ro
- ./docker/composer/conf/composer.lock:/app/composer.lock:ro
- ./docker/storage/vendor:/app/vendor
app:
build:
context: ./
dockerfile: ./docker/app/Dockerfile
container_name: app
ports:
- 80:80
- 443:443
depends_on:
- ${DB_HOSTNAME}
volumes:
- ./private:/var/www/localhost/htdocs/private:ro
- ./public:/var/www/localhost/htdocs/public:ro
- ./js:/var/www/localhost/htdocs/js:ro
- ./css:/var/www/localhost/htdocs/css:ro
- ./assets:/var/www/localhost/htdocs/assets:ro
- ./library:/var/www/localhost/htdocs/library:ro
- ./assets:/var/www/localhost/assets:ro
- ./index.php:/var/www/localhost/htdocs/index.php:ro
- ./.env:/var/www/localhost/htdocs/.env:ro
- ./docker/app/conf/.htaccess:/var/www/localhost/htdocs/.htaccess:ro
- ./docker/app/conf/settings.json:/var/www/localhost/htdocs/settings/settings.json:ro
- ./docker/app/conf/httpd.conf:/etc/apache2/httpd.conf:ro
- ./docker/storage/vendor:/var/www/localhost/htdocs/vendor:ro
- ./docker/app/conf/ssl.conf:/etc/apache2/conf.d/ssl.conf:ro
# Database
db:
image: mariadb
container_name: ${DB_HOSTNAME}
ports:
- 3306:3306
environment:
- MYSQL_ROOT_HOST=%
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
volumes:
- ./docker/storage/db/:/var/lib/mysql
- ./docker/db/init/:/docker-entrypoint-initdb.d:ro
- ./docker/db/conf.d/:/etc/mysql/:ro
# Database frontend
phpmyadmin:
image: phpmyadmin
container_name: phpmyadmin
ports:
- 42069:80
environment:
- PMA_HOST=${DB_HOSTNAME}
depends_on:
- ${DB_HOSTNAME}
stripe:
image: stripe/stripe-cli
container_name: stripe-cli
command: listen
environment:
- STRIPE_API_KEY=${STRIPE_SECRET_KEY}
- STRIPE_DEVICE_NAME=${USERNAME:-testing_host}
- STRIPE_CLI_TELEMETRY_OPTOUT=true
depends_on:
- app
# Workaround so developers can delete ./docker/storage
volume-permissions-manager:
image: alpine:latest
command: sh -c "chmod -R 777 /storage && chown -R 1000:1000 /storage"
volumes:
- ./docker/storage/:/storage
depends_on:
- ${DB_HOSTNAME}
- composer