-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (76 loc) · 2.09 KB
/
docker-compose.yml
File metadata and controls
81 lines (76 loc) · 2.09 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
services:
wordpress:
build:
context: .
image: local-wp-s3-offloader
ports:
- "8080:80"
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
volumes:
- ./:/var/www/html/wp-content/plugins/s3-offloader
- wordpress_data:/var/www/html
depends_on:
- db
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 10s
retries: 5
db:
image: mysql:8.0
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_ROOT_PASSWORD: rootpassword
volumes:
- db_data:/var/lib/mysql
ports:
- "127.0.0.1:3306:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 30s
timeout: 10s
retries: 5
localstack:
image: localstack/localstack
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range
environment:
- DEBUG=${DEBUG:-0}
volumes:
- localstack_data:/var/lib/localstack
- /var/run/docker.sock:/var/run/docker.sock
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4566/_localstack/health"]
interval: 30s
timeout: 10s
retries: 5
intelephense:
build:
context: .
image: local-wp-s3-offloader
# command: [ "socat", "-v", "-d", "EXEC:'intelephense --stdio',stderr", "TCP4-LISTEN:4567,fork,reuseaddr" ]
# command: [ "ncat", "-o", "/dev/stdout", "-v", "-l", "-k", "-p", "4567", "-c", "'intelephense --stdio'"]
command: [ "intelephense", "--stdio", "--clientProcessId", "1" ]
restart: on-failure
stdin_open: true
profiles:
- tools
environment:
- NODE_OPTIONS=--max-old-space-size=8192
user: www-data
ports:
- "127.0.0.1:5657:5657" # only if via tcp (refs .nvim/lspconfig.lua)
working_dir: ${PWD}
volumes:
- ./:${PWD}
volumes:
wordpress_data:
db_data:
localstack_data: