This repository has been archived by the owner on Oct 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
63 lines (58 loc) · 1.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
version: '3'
services:
db:
image: mariadb:5.5
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
volumes:
- ./volumes/db:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
- PMA_ARBITRARY=1
ports:
- ${WP_PORT_PHPMA}:80
volumes:
- /sessions
httpd:
container_name: jahia2wp-httpd
# We use build info available in another cloned repository : https://github.com/epfl-si/wp-ops/
# TODO: Read domq's comment on PR https://github.com/epfl-si/jahia2wp/pull/800 and determine what can be done
build: ../wp-ops/docker/httpd
labels:
ch.epfl.jahia2wp.httpd.env: ${WP_ENV}
image: epflsi/wp-ops-httpd
volumes:
- ./volumes/srv:/srv
links:
- db:db
environment:
- WP_ENV=${WP_ENV}
ports:
- "${WP_PORT_HTTP}:8080"
- "${WP_PORT_HTTPS}:8443"
mgmt:
labels:
ch.epfl.jahia2wp.mgmt.env: ${WP_ENV}
image: epflsi/wp-ops-mgmt
# We use build info available in another cloned repository : https://github.com/epfl-si/wp-ops/
# TODO: Read domq's comment on PR https://github.com/epfl-si/jahia2wp/pull/800 and determine what can be done
build: ../wp-ops/docker/mgmt
env_file:
- .env
environment:
- WP_ENV=${WP_ENV}
- LOGGING_FILE=/srv/${WP_ENV}/logs/jahia2wp.log
volumes:
- ./volumes/srv:/srv
- ./etc/.bash_history:/var/www/.bash_history
- ./etc/.aliases:/srv/.aliases
- ./etc/.bashrc:/srv/.bashrc
- ./data:/srv/${WP_ENV}/jahia2wp/data
- ./requirements:/srv/${WP_ENV}/jahia2wp/requirements
- ./src:/srv/${WP_ENV}/jahia2wp/src
- ./functional_tests:/srv/${WP_ENV}/jahia2wp/functional_tests
- ./Makefile.mgmt:/srv/${WP_ENV}/jahia2wp/Makefile
- .env:/srv/${WP_ENV}/jahia2wp/.env
ports:
- "${WP_PORT_SSHD}:22"