-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
61 lines (56 loc) · 1.49 KB
/
docker-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
version: '3.1'
services:
wordpress:
image: wordpress
container_name: ${STACK_NAME}-wordpress
restart: unless-stopped
command:
- /bin/sh
- -c
- |
test $$(getent group docker) || addgroup --gid ${APACHE_RUN_GROUP} docker
test $$(id -u docker) || adduser --uid ${APACHE_RUN_USER} --ingroup docker \
--home /home/docker --disabled-password --gecos '' docker
/usr/local/bin/docker-entrypoint.sh apache2-foreground
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: ${STACK_NAME}
WORDPRESS_DB_PASSWORD: ${STACK_NAME}
WORDPRESS_DB_NAME: wordpress
APACHE_RUN_USER: "docker"
APACHE_RUN_GROUP: "docker"
networks:
- proxy
- wordpress
volumes:
- ./wordpress:/var/www/html
db:
image: jc21/mariadb-aria:latest
container_name: ${STACK_NAME}-mysql
restart: unless-stopped
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: ${STACK_NAME}
MYSQL_PASSWORD: ${STACK_NAME}
MYSQL_ROOT_PASSWORD: ${STACK_NAME}
networks:
- wordpress
volumes:
- db:/var/lib/mysql
phpmyadmin:
image: linuxserver/phpmyadmin:latest
container_name: ${STACK_NAME}-phpmyadmin
restart: unless-stopped
environment:
PMA_HOST: db
PMA_PORT: 3306
MYSQL_ROOT_PASSWORD: ${STACK_NAME}
networks:
- proxy
- wordpress
volumes:
db:
networks:
proxy:
external: true
wordpress: