-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
108 lines (100 loc) · 2.64 KB
/
compose.yaml
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
104
105
106
107
108
# Styx (River in Hades)
#
# WebDevel Server in Container
# - Apache 2.4
# - PHP 7.4 (oder 8.1)
# - Composer 2
# - httpd Port 8080
#
# run:
# >> cd ./styx
# >> podman-compose up -d
# stop:
# >> podman-compose down
#
version: "4"
services:
webserver7:
container_name: styx-webserver7
build:
# docker.io/library/php:7-apache
context: ./app/apache-php7/container
dockerfile: Dockerfile
ports:
- ${HTTPD_PORT_HOST}:${HTTPD_PORT_CONTAINER}
networks:
- styxnet
volumes:
- ./app/apache-php7/config/zzz-00-app.conf:/etc/apache2/sites-enabled/zzz-00-app.conf:Z
- ${HTTPD_WEBROOT_HOST}:${HTTP_WEBROOT_CONTAINER}:Z
webserver8:
container_name: styx-webserver8
build:
context: ./app/apache-php8/container
dockerfile: Dockerfile
ports:
- 8088:${HTTPD_PORT_CONTAINER}
networks:
- styxnet
volumes:
- ./app/apache-php8/config/zzz-00-app.conf:/etc/apache2/sites-enabled/zzz-00-app.conf:Z
- ${HTTPD_WEBROOT_HOST}:${HTTP_WEBROOT_CONTAINER}:Z
mariadb:
container_name: styx-mariadb
# url: https://hub.docker.com/r/bitnami/mariadb/
image: docker.io/bitnami/mariadb:10.8
networks:
- styxnet
ports:
- 3306:3306
volumes:
- ./files/mariadb_data:/bitnami/mariadb:Z
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=dbuser
- MARIADB_PASSWORD=dbpass
- MARIADB_DATABASE=mysql
healthcheck:
test: ['CMD', '/opt/bitnami/scripts/mariadb/healthcheck.sh']
interval: 15s
timeout: 5s
retries: 6
phpmyadmin:
container_name: styx-phpmyadmin
# url: https://hub.docker.com/r/bitnami/phpmyadmin
image: docker.io/bitnami/phpmyadmin:latest
networks:
- styxnet
ports:
- 8081:8080
- 8444:8443
environment:
- PHPMYADMIN_ALLOW_ARBITRARY_SERVER=false
- PHPMYADMIN_ALLOW_REMOTE_CONNECTIONS=yes
- DATABASE_ALLOW_NO_PASSWORD=yes
- DATABASE_HOST=mariadb
- DATABASE_PORT_NUMBER=3306
- DATABASE_ENABLE_SSL=no
- PHP_MEMORY_LIMIT=512M
- PHP_POST_MAX_SIZE=1024M
- PHP_UPLOAD_MAX_FILESIZE=1024M
- PHP_MAX_INPUT_TIME=0
depends_on:
- mariadb
redis:
container_name: styx-redis
image: docker.io/bitnami/redis:7.0
environment:
# ALLOW_EMPTY_PASSWORD is recommended only for development.
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
networks:
- styxnet
ports:
- '6379:6379'
volumes:
- ./files/redis_data:/bitnami/redis/data:Z
networks:
styxnet:
driver: bridge