-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
103 lines (96 loc) · 2.76 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: "3.8"
services:
# PHP interpreter
php-fpm:
build:
context: docker/php-fpm
args:
- TAG_PHP=${TAG_PHP:-7.4-fpm}
- _UID=${_UID:-100}
- _GID=${_GID:-100}
image: ${IMAGE_NAME:-test:beta}
container_name: ${CONTAINER_NAME:-test}
restart: unless-stopped
environment:
- _UID=${_UID:-100}
- _GID=${_GID:-100}
- APP_USER=${APP_USER:-www-data}
- APP_ENV=${APP_ENV:-dev}
- APP_SECRET=${APP_SECRET:-I_can_read_it_in_your_mind}
- KERNEL_CLASS=${KERNEL_CLASS:-'App\Kernel'}
- COMPOSER_MEMORY_LIMIT=-1
depends_on:
- mariadb
networks:
- dev
# API web server
nginx-api:
build:
context: docker/nginx-api
args:
- TAG_NGINX=${TAG_NGINX:-1.20}
- VERSION=${PROJECT_API_VERSION:-0}
image: ${PROJECT:-test}_api:${PROJECT_VERSION:-0}
container_name: ${PROJECT:-test}_nginx_api
restart: unless-stopped
depends_on:
- php-fpm
networks:
- dev
# Application database
mariadb:
build:
context: docker/mariadb
args:
- TAG_MARIADB=${TAG_MARIADB:-10.5.11}
image: ${PROJECT:-test}_db:${PROJECT_VERSION:-0}
container_name: ${PROJECT:-test}_mariadb
labels:
com.symfony.server.service-prefix: 'mariadb'
restart: unless-stopped
environment:
- MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=${DATABASE_ALLOW_EMPTY_ROOT_PASSWORD:-false}
- MARIADB_ROOT_PASSWORD=${DATABASE_ROOT_PASSWORD:-}
- MARIADB_DATABASE=${DATABASE_NAME:-db}
- MARIADB_USER=${DATABASE_USER:-db}
- MARIADB_PASSWORD=${DATABASE_PASSWORD:-db}
- MARIADB_EXTRA_DATABASES=${EXTRA_DATABASES:-db_test}
networks:
- dev
# # MySQL Web interface
# # Browse http://localhost:8080 to monitor the database
# phpmyadmin:
# build:
# context: docker/phpmyadmin
# args:
# - TAG_PHPMYADMIN=${TAG_PHPMYADMIN:-latest}
# image: ${PROJECT:-test}_dbadmin:${PROJECT_VERSION:-0}
# container_name: ${PROJECT:-test}_phpmyadmin
# restart: unless-stopped
# depends_on:
# - mariadb
# environment:
# - PMA_ARBITRARY=1
# - PMA_HOST=${DATABASE_HOST:-mariadb}
# - PMA_PORT=${DATABASE_PORT:-3306}
# - PMA_USER=root
# - PMA_PASSWORD=${DATABASE_ROOT_PASSWORD:-}
# networks:
# - dev
# Catch mails sent from the PHP application
# Browse http://localhost:1080 to view the webmail
mailcatcher:
build:
context: docker/mailcatcher
args:
- TAG_MAILCATCHER=${TAG_MAILCATCHER:-v0.8.0}
image: ${PROJECT:-test}_mailer:${PROJECT_VERSION:-0}
container_name: ${PROJECT:-test}_mailcatcher
labels:
com.symfony.server.service-prefix: 'MAILER'
restart: unless-stopped
networks:
- dev
networks:
dev:
name: ${PROJECT:-test}_lan