-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
57 lines (55 loc) · 1.5 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
version: '3.8'
services:
caddy:
env_file: [.env.local]
container_name: ${COMPOSE_PROJECT_NAME}-caddy
build:
context: ./
args:
CADDY_VERSION: ${CADDY_VERSION:-2}
volumes:
- caddy_data:/data
- caddy_config:/config
- php_socket:/var/run/php
depends_on:
php:
condition: service_started
php:
env_file: [.env.local]
container_name: ${COMPOSE_PROJECT_NAME}-php
build:
context: ./
args:
PHP_VERSION: ${PHP_VERSION:-8}
PHP_EXTENSIONS: ${PHP_EXTENSIONS:-}
COMPOSER_VERSION: ${COMPOSER_VERSION:-lts}
NODE_VERSION: ${NODE_VERSION:-18}
#ejs <%_ if (!mariadb) { _%>
environment:
DATABASE_ENABLE_MIGRATIONS: false
#ejs <%_ } _%>
volumes:
- php_socket:/var/run/php
#ejs <%_ if (mariadb) { _%>
depends_on:
db:
condition: service_started
#ejs <%_ } _%>
#ejs <%_ if (mariadb) { %>
db:
env_file: [.env.local]
container_name: ${COMPOSE_PROJECT_NAME}-db
build:
context: ./
args:
MARIADB_VERSION: ${MARIADB_VERSION:-11}
volumes:
- db_data:/var/lib/mysql
#ejs <%_ } %>
volumes:
caddy_config:
caddy_data:
#ejs <%_ if (mariadb) { _%>
db_data:
#ejs <%_ } _%>
php_socket: