forked from akeeba/panopticon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-frankenphp.yml
67 lines (65 loc) · 2.3 KB
/
docker-compose-frankenphp.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
################################################################################
## Akeeba Panopticon
## (c) 2023-2024 Nicholas K. Dionysopoulos / Akeeba Ltd
## Licensed under the GNU Affero General Public License, version 3 or later
## <https://www.gnu.org/licenses/agpl-3.0.txt>
##
## -----------------------------------------------------------------------------
##
## Sample Docker Compose file, using FrankenPHP
##
## Use this Docker Compose file to set up your own installation of Akeeba
## Panopticon. Read the comments in this file to understand what to configure.
##
################################################################################
services:
# The web application container, based on FrankenPHP (https://frankenphp.dev).
php:
# If you are using a development / customised installation built from sources use the `build` section.
build:
context: '.'
dockerfile: frankenphp.Dockerfile
container_name: panopticon_php
depends_on:
wait-for-db:
condition: service_completed_successfully
restart: always
links:
- mysql
# This exposes the internal web server ports (80 and 443) to your host as ports 4280 and 4443 respectively.
# You may want to change that to 80:80 and 443:443 for live deployments.
ports:
- 4280:80
- 4443:443
volumes:
- panopticon_usercode:/app/public/user_code
- panopticon_config:/app/public/config
# comment the following line in production, it allows to have nice human-readable logs in dev
tty: true
env_file:
- .env.docker
# The database server container.
mysql:
image: mysql:8.0
container_name: panopticon_mysql
command:
- --default-authentication-plugin=mysql_native_password
restart: always
volumes:
- panopticon_mysql:/var/lib/mysql
env_file:
- .env.docker
# Used to start the web application container only after the database container is up and running.
wait-for-db:
image: atkrad/wait4x
depends_on:
- mysql
command: tcp mysql:3306 -t 30s -i 250ms
# These are the Docker volumes storing persistent data.
volumes:
# User-provided code. It's mounted in the user_code folder of the application.
panopticon_usercode:
# Panopticon's config.php file
panopticon_config:
# The MySQL data directory
panopticon_mysql: