Working wordpress site
This commit is contained in:
parent
ea591ac948
commit
d635990b62
1
.env
1
.env
|
|
@ -12,3 +12,4 @@ PGADMIN_DEFAULT_PASSWORD=bajsa
|
|||
|
||||
PUID=1000
|
||||
PGID=1000
|
||||
TZ=Europe/Stockholm
|
||||
|
|
|
|||
|
|
@ -1,29 +1,6 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
mariadb:
|
||||
container_name: mariadb
|
||||
image: mariadb:10.4
|
||||
networks:
|
||||
- backend
|
||||
restart: always
|
||||
volumes:
|
||||
- ${DIR}/mariadb:/var/lib/mysql
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD}
|
||||
- MYSQL_DATABASE=wordpress
|
||||
|
||||
phpmyadmin:
|
||||
image: phpmyadmin/phpmyadmin:latest
|
||||
networks:
|
||||
- backend
|
||||
- frontend
|
||||
ports:
|
||||
- 8000:80
|
||||
environment:
|
||||
- PMA_ARBITRARY=1
|
||||
- PMA_HOST=mariadb
|
||||
|
||||
postgres:
|
||||
container_name: postgres
|
||||
image: postgres
|
||||
|
|
@ -51,47 +28,12 @@ services:
|
|||
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
|
||||
#- PUID=${PUID}
|
||||
#- PGID=${PGID}
|
||||
#- TZ=${TZ}
|
||||
- TZ=${TZ}
|
||||
volumes:
|
||||
- ${DIR}/pgadmin4:/root/.pgadmin
|
||||
#- ${DIR}/pgadmin4:/var/lib/pgadmin
|
||||
|
||||
|
||||
wordpress:
|
||||
image: wordpress
|
||||
environment:
|
||||
- WORDPRESS_DB_PASSWORD=${MYSQL_PASSWORD}
|
||||
networks:
|
||||
- backend
|
||||
- frontend
|
||||
ports:
|
||||
- 8002:80
|
||||
volumes:
|
||||
- ${DIR}/wp:/var/www/html
|
||||
links:
|
||||
- mariadb:mysql
|
||||
|
||||
ttrss:
|
||||
image: wangqiru/ttrss:latest
|
||||
container_name: ttrss
|
||||
ports:
|
||||
- 8001:80
|
||||
environment:
|
||||
- SELF_URL_PATH=http://localhost:8001/ # please change to your own domain
|
||||
- DB_HOST=POSTGRES
|
||||
- DB_PORT=5432
|
||||
- DB_NAME=ttrss
|
||||
- DB_USER=root
|
||||
- DB_PASS=qwerty # please change the password
|
||||
- ENABLE_PLUGINS=auth_internal,fever # auth_internal is required. Plugins enabled here will be enabled for all users as system plugins
|
||||
stdin_open: true
|
||||
tty: true
|
||||
restart: always
|
||||
command: sh -c 'sh /wait-for.sh $$DB_HOST:$$DB_PORT -- php /configure-db.php && exec s6-svscan /etc/s6/'
|
||||
|
||||
networks:
|
||||
- backend
|
||||
- frontend
|
||||
|
||||
networks:
|
||||
frontend:
|
||||
|
|
|
|||
Loading…
Reference in New Issue