This repository has been archived by the owner on Jul 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
81 lines (75 loc) · 1.57 KB
/
docker-compose.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
79
80
81
version: '3'
services:
composer:
image: composer
volumes:
- workspace:/app
craft:
image: craftcms/nginx:8.0-dev
ports:
- '8080:8080'
volumes:
- workspace:/app
deploy:
resources:
limits:
memory: 1024M
environment:
CODESPACES: ${CODESPACES}
CODESPACE_NAME: ${CODESPACE_NAME}
logging:
options:
max-size: "1m"
max-file: "3"
depends_on:
- mariadb
mariadb:
image: mariadb
ports:
- '3306:3306'
volumes:
- dbdata:/var/lib/mysql:delegated
environment:
MYSQL_DATABASE: craft
MYSQL_USER: craft
MYSQL_PASSWORD: craft
MYSQL_ROOT_PASSWORD: root
deploy:
resources:
limits:
memory: 512M
logging:
options:
max-size: "1m"
max-file: "3"
console:
image: craftcms/cli:8.0-dev
volumes:
- workspace:/app
command: sh -c 'sleep 10 && php craft queue/listen --verbose=1 --interactive=0 --isolate=1'
restart: unless-stopped
deploy:
resources:
limits:
memory: 1024M
logging:
options:
max-size: "1m"
max-file: "3"
depends_on:
- mariadb
workspace:
image: mcr.microsoft.com/vscode/devcontainers/universal:1-focal
init: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- workspace:/workspace
volumes:
dbdata:
driver: local
workspace:
driver: local
driver_opts:
type: none
device: /var/lib/docker/codespacemount/workspace/craft-codespace
o: bind