-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
122 lines (121 loc) · 4.03 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
version: '3.3'
services:
traefik:
image: traefik:v2.10
container_name: traefik_platforms
ports:
- "8081:8081"
- "8082:8082"
command:
- --api.insecure=true
- --api.dashboard=true
- --api.debug=true
- --log.level=DEBUG
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --providers.docker.network=platforms
- --entrypoints.platforms.address=:8081
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
- "traefik.enable=true"
- "traefik.docker.network=platforms"
- "traefik.http.routers.api.rule=Host(`monitor.dev.nos.to`)"
- "traefik.http.routers.api.service=api@internal"
- "traefik.http.routers.platforms-shopware.entrypoints=platforms"
- "traefik.http.routers.platforms-prestashop.entrypoints=platforms"
shopware:
hostname: shopware
#docker build -t nosto-shopware . or it will try to pull from hub.docker
image: nosto-shopware
# build:
# context: ./shopware
# dockerfile: ./Dockerfile
links:
- mariadb
# ports:
# - 9004:9002 # Enable in order to use XDebug
extra_hosts:
- my.dev.nos.to:192.168.65.254
labels:
- "traefik.enable=true"
- "traefik.http.routers.shopware.rule=Host(`shopware.dev.nos.to`)"
- "traefik.http.routers.shopware.entrypoints=platforms"
- "traefik.http.services.shopware.loadbalancer.server.port=80"
volumes:
- type: bind
source: ./shopware/nosto-shopware
target: /var/www/html/shopware/Plugins/Community/Frontend/NostoTagging
environment:
MYSQL_HOST: mariadb
MYSQL_USER: root
MYSQL_PASSWORD: root
MYSQL_DATABASE: shopware
VIRTUAL_HOST: shopware.dev.nos.to:8081
ADMIN_USER: admin
ADMIN_PASSWORD: Admin12345
# Use the env vars bellow to point to your local or staging play instance
NOSTO_SERVER_URL: connect.my.dev.nos.to
NOSTO_API_BASE_URL: http://host.docker.internal:9000/api
NOSTO_OAUTH_BASE_URL: https://my.dev.nos.to/oauth
NOSTO_WEB_HOOK_BASE_URL: https://my.dev.nos.to
NOSTO_IFRAME_ORIGIN: https://my.dev.nos.to
NOSTO_IFRAME_ORIGIN_REGEXP: .*
PHP_IDE_CONFIG: serverName=shopware.dev.nos.to:8081 # for XDebug
depends_on:
- traefik
mariadb:
build:
context: ./mariadb
dockerfile: ./Dockerfile
ports:
- "3308:3306"
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
- mariadb_data_platforms:/var/lib/mysql
depends_on:
- traefik
prestashop:
hostname: prestashop
image: nosto-prestashop:1.7.8.10
links:
- mariadb
# ports:
# - 9003:9002 # Enable in order to use XDebug
extra_hosts:
- "my.dev.nos.to:192.168.65.254"
labels:
- "traefik.enable=true"
- "traefik.http.routers.prestashop.rule=Host(`prestashop.dev.nos.to`)"
- "traefik.http.routers.prestashop.entrypoints=platforms"
- "traefik.http.services.prestashop.loadbalancer.server.port=80"
volumes:
- type: bind
source: ./prestashop/nosto-prestashop
target: /var/www/html/prestashop/modules/nostotagging
- type: bind
source: ./prestashop/nosto-prestashop-cron
target: /var/www/html/prestashop/modules/mynostocron
environment:
MYSQL_HOST: mariadb
MYSQL_USER: root
MYSQL_PASSWORD: root
MYSQL_DATABASE: prestashop
VIRTUAL_HOST: prestashop.dev.nos.to:8081
ADMIN_EMAIL: admin@admin.com
ADMIN_PASSWORD: Admin12345
# Use the env vars bellow to point to your local or staging play instance
NOSTO_SERVER_URL: connect.my.dev.nos.to
NOSTO_API_BASE_URL: http://host.docker.internal:9000/api
NOSTO_OAUTH_BASE_URL: https://my.dev.nos.to/oauth
NOSTO_WEB_HOOK_BASE_URL: https://my.dev.nos.to
NOSTO_IFRAME_ORIGIN: https://my.dev.nos.to
NOSTO_IFRAME_ORIGIN_REGEXP: .*
PHP_IDE_CONFIG: serverName=prestashop.dev.nos.to:8081 # for XDebug
depends_on:
- traefik
volumes:
mariadb_data_platforms:
networks:
platforms: