forked from cesarams/prestashop-ee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (48 loc) · 1.4 KB
/
docker-compose.yml
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
version: '3'
services:
# Reference: https://hub.docker.com/_/mysql
prestashop.database:
container_name: prestashop-database
image: mysql
ports:
- ${MYSQL_PORT_OUT}:${MYSQL_PORT_IN}
restart: always
env_file:
- .env
environment:
- MYSQL_ROOT_PASSWORD=${PRESTASHOP_DB_PASSWORD}
- MYSQL_DATABASE=${PRESTASHOP_DB_NAME}
networks:
- prestashop-net
command:
- "--character-set-server=utf8"
- "--collation-server=utf8_unicode_ci"
- "--default-authentication-plugin=mysql_native_password"
# Default admin credentials:
# [email protected] ; prestashop_demo
# Reference: https://hub.docker.com/r/prestashop/prestashop
prestashop.web:
container_name: "${PRESTASHOP_CONTAINER_NAME}"
build:
context: .
environment:
- PRESTASHOP_VERSION=${PRESTASHOP_VERSION}
- DB_SERVER=${PRESTASHOP_DB_SERVER}
- DB_PASSWD=${PRESTASHOP_DB_PASSWORD}
- DB_NAME=${PRESTASHOP_DB_NAME}
- PS_INSTALL_AUTO=1
- PS_FOLDER_ADMIN=backend
- PS_DOMAIN=${PRESTASHOP_CONTAINER_DOMAIN}
- PS_SHOP_URL=${PRESTASHOP_CONTAINER_SHOP_URL}
- PS_FOLDER_INSTALL=removedinstall
networks:
- prestashop-net
ports:
- "8080:80"
env_file:
- .env
depends_on:
- prestashop.database
# Setup container network, this allows for mysql to be unavailable for the www
networks:
prestashop-net: