Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
97 lines (89 loc) · 2.21 KB
/
Copy pathdocker-compose.yml
File metadata and controls
97 lines (89 loc) · 2.21 KB
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
---
# The services Lagoon builds and runs. Lagoon reads the labels; the
# environment blocks only apply when this runs under docker compose.
x-environment: &default-environment
LAGOON_ENVIRONMENT_TYPE: local
LAGOON_ROUTES: http://localhost:3000,http://localhost:8080,http://localhost:3030
DRUXT_FRONTEND_URL: http://localhost:3000
volumes:
files: {}
db: {}
services:
cli:
build:
context: .
dockerfile: lagoon/cli.dockerfile
image: &cli-image ${COMPOSE_PROJECT_NAME:-druxtjs-org}-cli
labels:
lagoon.type: cli-persistent
lagoon.persistent.name: nginx
lagoon.persistent: /app/drupal/web/sites/default/files/
volumes:
- files:/app/drupal/web/sites/default/files
environment:
<<: *default-environment
nginx:
build:
context: .
dockerfile: lagoon/nginx.dockerfile
args:
CLI_IMAGE: *cli-image
additional_contexts:
cli: 'service:cli'
labels:
lagoon.type: nginx-php-persistent
lagoon.persistent: /app/drupal/web/sites/default/files/
ports:
- '8080:8080'
volumes:
- files:/app/drupal/web/sites/default/files
depends_on:
- cli
environment:
<<: *default-environment
php:
build:
context: .
dockerfile: lagoon/php.dockerfile
args:
CLI_IMAGE: *cli-image
additional_contexts:
cli: 'service:cli'
labels:
lagoon.type: nginx-php-persistent
lagoon.name: nginx
lagoon.persistent: /app/drupal/web/sites/default/files/
volumes:
- files:/app/drupal/web/sites/default/files
depends_on:
- cli
environment:
<<: *default-environment
mariadb:
image: uselagoon/mariadb-10.11-drupal:26.8.1
labels:
lagoon.type: mariadb
volumes:
- db:/var/lib/mysql
environment:
<<: *default-environment
nuxt:
build:
context: .
dockerfile: lagoon/nuxt.dockerfile
labels:
lagoon.type: node
ports:
- '3000:3000'
environment:
<<: *default-environment
storybook:
build:
context: .
dockerfile: lagoon/storybook.dockerfile
labels:
lagoon.type: node
ports:
- '3030:3000'
environment:
<<: *default-environment