Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to acccess by public-ip when PS_INSTALL_AUTO=1 #305

Open
qiaofeng1227 opened this issue Jun 6, 2022 · 0 comments
Open

I want to acccess by public-ip when PS_INSTALL_AUTO=1 #305

qiaofeng1227 opened this issue Jun 6, 2022 · 0 comments

Comments

@qiaofeng1227
Copy link

``
version: '3.8'

services:
prestashop:
image: prestashop/prestashop:${APP_VERSION}
container_name: ${APP_NAME}
ports:
- ${APP_PORT}:80
volumes:
- prestashop:/var/www/html
environment:
- PS_DEMO_MODE=1
- PS_INSTALL_AUTO=1
- PS_DOMAIN=${APP_SITE_URL}:{APP_PORT}
- PS_LANGUAGE=en
- PS_COUNTRY=GB
- PS_ALL_LANGUAGES=true
- DB_SERVER=mysql
- DB_USER=${DB_MYSQL_USER}
- DB_PASSWD=${DB_MYSQL_PASSWORD}
- DB_PREFIX=ps_
- ADMIN_MAIL=${EMAIL}
- ADMIN_PASSWD=${APP_PASSWORD}
depends_on:
- mysql
restart: always

mysql:
image: mysql:${DB_MYSQL_VERSION}
container_name: ${APP_NAME}-db
restart: always
ports:
- ${DB_MYSQL_PORT}:3306
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
- mysql_data:/var/lib/mysql
environment:
MYSQL_DATABASE: ${DB_MYSQL_NAME}
MYSQL_USER: ${DB_MYSQL_USER}
MYSQL_PASSWORD: ${DB_MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_MYSQL_PASSWORD}

networks:
default:
name: ${APP_NAME}

volumes:
prestashop:
mysql_data:`
``

DB_MYSQL_VERSION=5.7
DB_MYSQL_PORT=3306
DB_MYSQL_PASSWORD=uQ8E1wVTzG8SOk3!
DB_MYSQL_NAME=prestashop
DB_MYSQL_USER=prestashop

APP_VERSION=latest
APP_PORT=9001
APP_PASSWORD_INIT=True
APP_USER=admin
APP_PASSWORD=uQ8E1wVTzG8SOk3!
APP_NAME=prestashop
APP_SITE_URL=47.242.55.30

VOLUMES_PATH_PREFIX=./volumes
DOMAIN=prestashop.example.com
[email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant