generated from dunglas/symfony-docker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.override.yml
87 lines (79 loc) · 2.2 KB
/
docker-compose.override.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
version: "3.4"
# Development environment override
services:
php:
build:
args:
APP_ENV: ${APP_ENV:-dev}
volumes:
- ./:/srv/app:rw,cached
- ./docker/php/conf.d/symfony.dev.ini:/usr/local/etc/php/conf.d/symfony.ini
# If you develop on Linux, comment out the following volumes to just use bind-mounted project directory from host
# - ./var:/srv/app/var:rw
environment:
APP_ENV: ${APP_ENV:-dev}
depends_on:
- database
- redis
caddy:
build:
args:
APP_ENV: ${APP_ENV:-dev}
volumes:
- ./docker/caddy/Caddyfile:/etc/caddy/Caddyfile:ro
- ./public:/srv/app/public:ro
redis:
image: "redis:alpine"
command: redis-server --requirepass ${REDIS_PASSWORD:-ChangeMe}
database:
image: mysql:${MYSQL_VERSION:-8.0}
platform: linux/x86_64
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE:-app}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-ChangeMe}
MYSQL_USER: ${MYSQL_USER:-symfony}
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
cap_add:
- SYS_NICE # CAP_SYS_NICE
volumes:
- db-data:/var/lib/mysql:rw
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
interval: 3s
timeout: 3s
retries: 10
tools-service:
image: koalati/tools-service
depends_on:
database:
condition: service_healthy
environment:
PORT: 3000
MOCK_API: 0
WEBHOOK_HOST: caddy
WEBHOOK_PATH: /webhook/test-result
JWT_SECRET: ${TOOLS_API_JWT_SECRET:-ChangeMe123}
AUTH_ACCESS_TOKEN: ${TOOLS_API_AUTH_ACCESS_TOKEN:-ChangeMe123}
DATABASE_HOST: ${TOOLS_API_DATABASE_HOST:-database}
DATABASE_NAME: ${TOOLS_API_DATABASE_NAME:-app}
DATABASE_USER: ${TOOLS_API_DATABASE_USER:-symfony}
DATABASE_PASSWORD: ${TOOLS_API_DATABASE_PASSWORD:-ChangeMe}
DATABASE_REJECT_UNAUTHORIZED: 0
PGPORT: 5432
restart: unless-stopped
ports:
- 3000:3000
adminer:
image: adminer
restart: unless-stopped
ports:
- ${ADMINER_PORT:-8080}:8080
###> symfony/mailer ###
mailer:
image: schickling/mailcatcher
ports:
- 1025:1025
- 1080:1080
###< symfony/mailer ###
volumes:
db-data: