-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lando.yml
58 lines (58 loc) · 1.35 KB
/
.lando.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
name: local-ai
recipe: drupal11
config:
webroot: web
php: "8.3"
composer_version: '2'
edge: false
xdebug: true
services:
vectordb:
type: lando
api: 3
meUser: root
portforward: true
ports:
- 27017
networks:
localai:
services:
user: root
image: mongodb/mongodb-atlas-local:latest
command: 'entrypoint.sh start_atlas'
entrypoint: ["entrypoint.sh"]
privileged: true
environment:
LANDO_WEBROOT_USER: root
LANDO_WEBROOT_GROUP: root
LANDO_DROP_USER: root
LANDO_NEEDS_EXEC: 'DOEEET'
LOCALDEV_PASSWORD: psswd
ports:
- 27017:27017
volumes:
- data:/data/db
- ./entrypoint.sh:/entrypoint.sh
healthcheck: false
build_as_root:
- yum install -y mongodb-mongosh
- yum install -y mongodb-atlas
run:
- atlas deployments setup dropai --bindIpAll --username root --password $LOCALDEV_PASSWORD --type local --port 27017 --force
- mongosh --eval "use documents"
appserver:
networks:
localai:
build_as_root:
- apt-get update -y
- yes '' | pecl install mongodb
- docker-php-ext-enable mongodb
run_as_root:
- echo "extension=mongodb.so" >> $PHP_INI_DIR/php.ini-production
networks:
localai:
tooling:
mongosh:
service: vectordb
atlas:
service: vectordb