-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
104 lines (98 loc) · 2.41 KB
/
docker-compose.yml
File metadata and controls
104 lines (98 loc) · 2.41 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
98
99
100
101
102
103
104
services:
mysqldb:
image: ${MYSQL_IMAGE-mysql:8.0}
container_name: mysql-8
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: cmfive
MYSQL_PASSWORD: cmfive
MYSQL_DATABASE: cmfive
TZ: Australia/Sydney
volumes:
- dbdata:/var/lib/mysql:delegated
networks:
- default
restart: unless-stopped
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
interval: 10s
timeout: 5m
retries: 20
cosine:
build:
context: .
dockerfile: dev.dockerfile
args:
- BASE_IMAGE=${COSINE_IMAGE-ghcr.io/2pisoftware/cosine:develop}
container_name: cosine
environment:
TZ: Australia/Sydney
DB_HOST: mysqldb
DB_DATABASE: cmfive
DB_USERNAME: cmfive
DB_PASSWORD: cmfive
DB_PORT: 3306
ENVIRONMENT: development
CUSTOM_CONFIG: |
Config::set('tests', ['testrunner' => 'ENABLED']);
Config::append('email', [
"layer" => "smtp",
"host" => "mailpit",
"port" => 1025,
"auth" => false,
]);
Config::append('main', ['company_support_email'=>"admin@example.com"]);
volumes:
- ./:/var/www/html:rw
ports:
- "3000:80"
- "3443:443"
networks:
- default
restart: unless-stopped
working_dir: /var/www/html
links:
- mysqldb
depends_on:
mysqldb:
condition: service_healthy
extra_hosts:
- "host.docker.internal:host-gateway"
compiler:
image: ${COMPILER_IMAGE-node:20-alpine}
container_name: node-compiler
volumes:
- ./:/var/www/html
- ./.codepipeline/docker/compiler.sh:/compiler.sh
command: "ash -c /compiler.sh"
healthcheck:
test:
- "CMD-SHELL"
- "ps aux | grep 'npm run watch' | grep -v grep"
- "test -f /var/www/html/system/templates/base/dist/app.css"
interval: 15s
timeout: 5m
retries: 20
restart: unless-stopped
user: "1000:1000"
depends_on:
cosine:
condition: service_healthy
mailpit:
image: axllent/mailpit:latest
container_name: mailpit
ports:
- "8025:8025"
networks:
- default
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8025" ]
interval: 10s
timeout: 5m
retries: 20
volumes:
dbdata:
driver: local
networks:
default: