-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.backend.yml
78 lines (72 loc) · 2.7 KB
/
docker-compose.backend.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
version: '2.3'
x-user:
&default-user
# The default user under which the containers should run. Change this if you are on linux and run with another user than id `1000`
user: '1000'
services:
cli:
build:
context: .
dockerfile: .docker/Dockerfile.cli
image: &cli-image druxt-umami-cli
labels:
lagoon.type: cli-persistent
lagoon.persistent.name: nginx
lagoon.persistent: /app/web/sites/default/files/
lando.type: php-cli-drupal
# << : *default-volumes
user: root
volumes_from: ### mount the ssh-agent from the pygmy or cachalot ssh-agent. Automatically removed in CI.
- container:amazeeio-ssh-agent ### Local overrides to mount host SSH keys. Automatically removed in CI.
# environment:
# << : *default-environment # loads the defined environment variables from the top
nginx:
build:
context: .
dockerfile: .docker/Dockerfile.nginx
args:
CLI_IMAGE: *cli-image # Inject the name of the cli image
labels:
lagoon.type: nginx-php-persistent
lagoon.persistent: /app/web/sites/default/files/ # define where the persistent storage should be mounted too
lando.type: nginx-drupal
# << : *default-volumes # loads the defined volumes from the top
<< : *default-user # uses the defined user from top
depends_on:
- cli # basically just tells docker-compose to build the cli first
# environment:
# << : *default-environment # loads the defined environment variables from the top
# LAGOON_LOCALDEV_URL: *default-url
networks:
- amazeeio-network
- default
php:
build:
context: .
dockerfile: .docker/Dockerfile.php
args:
CLI_IMAGE: *cli-image
labels:
lagoon.type: nginx-php-persistent
lagoon.name: nginx # we want this service be part of the nginx pod in Lagoon
lagoon.persistent: /app/web/sites/default/files/ # define where the persistent storage should be mounted too
lando.type: php-fpm
# << : *default-volumes # loads the defined volumes from the top
# << : *default-user # uses the defined user from top
depends_on:
- cli # basically just tells docker-compose to build the cli first
# environment:
# << : *default-environment # loads the defined environment variables from the top
mariadb:
image: amazeeiolagoon/mariadb-drupal:pr-892
labels:
lagoon.type: mariadb
lando.type: mariadb-drupal
ports:
- "3306" # exposes the port 3306 with a random local port, find it with `docker-compose port mariadb 3306`
# << : *default-user # uses the defined user from top
# environment:
# << : *default-environment
networks:
amazeeio-network:
external: true