Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
fix docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Fauxil-Fox committed Nov 29, 2023
1 parent bd53c3d commit f1804a4
Showing 1 changed file with 30 additions and 32 deletions.
62 changes: 30 additions & 32 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,36 @@ services:
volumes:
- "./keys:/var/www/catalyst/keys"
- "./external_assets:/var/www/catalyst/external_assets"
- "./www:/var/www/catalyst/www"
environment:
- DB_HOST=100.118.210.80
- DB_USER=postgres
- DB_PASS=postgres
- DB_HOST=mariadb
- DB_USER=catalyst
- DB_PASS=${DB_PASSWORD}

mariadb:
container_name: mariadb
image: mariadb:latest
restart: always
volumes:
- "./catalyst-database:/var/lib/mysql"
- "./catalyst.sql:/docker-entrypoint-initdb.d/init.sql"
environment:
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
- MARIADB_DATABASE=catalyst
- MARIADB_USER=catalyst
- MARIADB_PASSWORD=${DB_PASSWORD}
- MARIADB_AUTO_UPGRADE=1

# mariadb:
# container_name: mariadb
# image: mariadb:latest
# restart: always
# volumes:
# - "./catalyst-database:/var/lib/mysql"
# - "./catalyst.sql:/docker-entrypoint-initdb.d/init.sql"
# environment:
# - MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
# - MARIADB_DATABASE=catalyst
# - MARIADB_USER=catalyst
# - MARIADB_PASSWORD=${DB_PASSWORD}
# - MARIADB_AUTO_UPGRADE=1

# adminer-maria:
# container_name: adminer-maria
# image: michalhosna/adminer
# restart: unless-stopped
# environment:
# - ADMINER_DRIVER=server
# - ADMINER_SERVER=mariadb
# - ADMINER_USERNAME=root
# - ADMINER_PASSWORD=${MARIADB_ROOT_PASSWORD}
# - ADMINER_DB=mysql
# - ADMINER_AUTOLOGIN=1
# - ADMINER_NAME=[PROD] [MariaDB] Adminer
# ports:
# - 8081:8080
adminer-maria:
container_name: adminer-maria
image: michalhosna/adminer
restart: unless-stopped
environment:
- ADMINER_DRIVER=server
- ADMINER_SERVER=mariadb
- ADMINER_USERNAME=root
- ADMINER_PASSWORD=${MARIADB_ROOT_PASSWORD}
- ADMINER_DB=mysql
- ADMINER_AUTOLOGIN=1
- ADMINER_NAME=[PROD] [MariaDB] Adminer
ports:
- 8081:8080

0 comments on commit f1804a4

Please sign in to comment.