-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (47 loc) · 1.21 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (47 loc) · 1.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
services:
php:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
working_dir: /app
depends_on:
mysql:
condition: service_healthy
mem_limit: 2g
tty: true
stdin_open: true
command: ["tail", "-f", "/dev/null"]
environment:
COMPOSER_MEMORY_LIMIT: -1
CRAFT_ALLOW_SUPERUSER: 1
CRAFT_APP_ID: templateselect-test
CRAFT_ENVIRONMENT: dev
CRAFT_SECURITY_KEY: asdy8f7tgaysdfas987gduyvfas87dfghui
CRAFT_DB_DRIVER: mysql
CRAFT_DB_SERVER: mysql
CRAFT_DB_PORT: 3306
CRAFT_DB_DATABASE: pest
CRAFT_DB_USER: root
CRAFT_DB_PASSWORD: root
CRAFT_DB_TABLE_PREFIX: craft_
CRAFT_TEMPLATES_PATH: ./tests/templates
CRAFT_TIMEZONE: UTC
CRAFT_OMIT_SCRIPT_NAME_IN_URLS: "true"
CRAFT_DEV_MODE: "true"
DEV_MODE: "true"
CRAFT_EXE_PATH: ./craft
PRIMARY_SITE_URL: http://localhost:8080
mysql:
image: mysql:8
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: pest
ports:
- "3306:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-proot"]
interval: 5s
timeout: 5s
retries: 10