Skip to content

Commit

Permalink
Updated docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
simba77 committed Jan 28, 2023
1 parent 17a2503 commit e6c9301
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions docker-compose.yml
Expand Up @@ -8,8 +8,8 @@ services:
volumes:
- .:/var/www/html
ports:
- '${NGINX_HTTP_PORT:-8000}:80'
- '${NGINX_HTTP_PORT:-8001}:443'
- '${NGINX_HTTP_PORT:-}:80'
- '${NGINX_HTTP_PORT:-}:443'
networks:
- web
- default
Expand All @@ -22,7 +22,7 @@ services:
image: 'mariadb:10'
container_name: mariadb.${APP_NAME:-johncms}
ports:
- '${FORWARD_DB_PORT:-3306}:3306'
- '${FORWARD_DB_PORT:-}:3306'
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD:-johncms}'
MYSQL_ROOT_HOST: "%"
Expand All @@ -32,26 +32,11 @@ services:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- './docker/mariadb/data:/var/lib/mysql'
networks:
- default
labels:
- traefik.enable=false
phpmyadmin:
image: phpmyadmin
container_name: phpmyadmin.${APP_NAME:-johncms}
restart: always
ports:
- 8081:80
environment:
- PMA_ARBITRARY=0
- PMA_HOST=${DB_HOST:-mariadb}
- UPLOAD_LIMIT=1G
networks:
- web
- default
labels:
- traefik.enable=true
- traefik.http.routers.phpmyadmin.rule=Host(`phpmyadmin.loc`)
- traefik.enable=false

networks:
web:
Expand Down

0 comments on commit e6c9301

Please sign in to comment.