-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
110 lines (102 loc) · 3.47 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
104
105
106
107
108
109
110
# docker-compose.yml for running a local copy of the WordPress stack
#
# Note this docker-compose.yml will consumes the following environment
# variables (set them in a .env or on the command line):
#
# MARIADB_ROOT_PASSWORD The MariaDB's root password, default to `secret`
# MARIADB_USER The MariaDB's user, default to `wp`
# MARIADB_PASSWORD The MariaDB's user's password, default to `secret`
# MARIADB_DATABASE The MariaDB's database, default to `wordpress`
#
# WP_MARIADB_IMAGE_VERSION MariaDB docker image version, default to `11.4.4`
# WP_PHP_IMAGE_VERSION wp-php docker image version
# WP_NGINX_IMAGE_VERSION wp-nginx docker image version
# WP_MENUAPI_IMAGE_VERSION wp-menu-api docker image version
#
# WP_PHPMA_PORT Port to access PHPMyAdmin, default to `8080`
#
services:
mariadb:
container_name: wp-db
# https://quay-its.epfl.ch/repository/svc0041/mariadb
image: quay-its.epfl.ch/svc0041/mariadb:${WP_MARIADB_IMAGE_VERSION:-11.4.4}
environment:
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD:-secret}
- MARIADB_USER=${MARIADB_USER:-wp}
- MARIADB_PASSWORD=${MARIADB_PASSWORD:-secret}
- MARIADB_DATABASE=${MARIADB_DATABASE:-wordpress}
ports:
- 3306:3306
volumes:
- mariadb-data:/var/lib/mysql
labels:
maintainer: "[email protected]"
organization: "EPFL / ISAS-FSD"
php:
container_name: wp-php
# https://quay-its.epfl.ch/repository/svc0041/wp-php
image: quay-its.epfl.ch/svc0041/wp-php:${WP_PHP_IMAGE_VERSION:-2025-033}
volumes:
# Created by Makefile:
- ./src:/wp/6
- phpfpm-socket:/run/php-fpm
# A PHP file (wp-nonces.php) containing these secret keys:
# https://api.wordpress.org/secret-key/1.1/salt/
- ./run/wp-nonces:/wp-nonces
# Our nginx-specific entry point
- ./wp-ops/docker/wordpress-php:/wp/nginx-entrypoint
labels:
maintainer: "[email protected]"
organization: "EPFL / ISAS-FSD"
nginx:
container_name: wp-nginx
# https://quay-its.epfl.ch/repository/svc0041/wp-nginx
image: quay-its.epfl.ch/svc0041/wp-nginx:${WP_NGINX_IMAGE_VERSION:-2025-033}
ports:
- 80:80
- 443:443
volumes:
- ./src:/wp/6
- ./var/wp-data:/wp-data
- phpfpm-socket:/run/php-fpm
- ./run/nginx:/etc/nginx/conf
- ./run/certs:/etc/nginx/ssl
command:
- /usr/bin/nginx
- -c
- /etc/nginx/conf/nginx.conf
labels:
maintainer: "[email protected]"
organization: "EPFL / ISAS-FSD"
menu-api:
container_name: wp-menu-api
# build: menu-api
# https://quay-its.epfl.ch/repository/svc0041/menu-api
image: quay-its.epfl.ch/svc0041/menu-api:${WP_MENUAPI_IMAGE_VERSION:-2025-016}
ports:
- 3001:3001
volumes:
- ./menu-api/menu-api-config.yaml:/config/menu-api-config.yaml
labels:
maintainer: "[email protected]"
organization: "EPFL / ISAS-FSD"
# clinic:
# container_name: wp-clinic
# # https://quay-its.epfl.ch/repository/svc0041/ubuntu
# image: quay-its.epfl.ch/svc0041/ubuntu
# command: ["sleep","infinity"]
# volumes:
# - volumes/wp:/wp
phpmyadmin:
container_name: wp-pma
image: phpmyadmin/phpmyadmin
environment:
- PMA_ARBITRARY=1
ports:
- ${WP_PHPMA_PORT:-8080}:80
labels:
maintainer: "[email protected]"
organization: "EPFL / ISAS-FSD"
volumes:
phpfpm-socket:
mariadb-data: