-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
105 lines (98 loc) · 3.5 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
105 lines (98 loc) · 3.5 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
105
version: '3.8'
services:
php:
restart: unless-stopped
container_name: ${CONTAINER_PREFIX:?must be specified}_php
build:
context: ./services/php/fpm
args:
PROJECT_NAME: ${PROJECT_NAME:?must be specified}
GITHUB_USER: ${GITHUB_USER}
GITHUB_TOKEN: ${GITHUB_TOKEN}
GITHUB_EMAIL: ${GITHUB_EMAIL}
GITHUB_NAME: ${GITHUB_NAME}
expose:
- '9000'
environment:
- PHP_IDE_CONFIG=serverName=${PROJECT_NAME:?must be specified}
- TIMEZONE=${TIMEZONE}
- XDEBUG_CLIENT_HOST=${XDEBUG_CLIENT_HOST}
volumes:
- ./services/php/fpm/php.ini:/usr/local/etc/php/conf.d/php.ini
- ./services/php/fpm/bashrc_config.txt:/usr/local/share/bashrc_config.txt
- ./app:/var/www/${PROJECT_NAME:?must be specified}
- ./services/composer/cache:/root/.composer/cache
networks:
- default
nginx:
restart: unless-stopped
container_name: ${CONTAINER_PREFIX:?must be specified}_nginx
image: nginx:1.21.6-alpine
ports:
- '${NGINX_PORT:-80}:80'
- '${NGINX_SSL_PORT:-443}:443'
environment:
- PROJECT_NAME=${PROJECT_NAME:?must be specified}
volumes:
- ./services/nginx:/etc/nginx/templates
- ./services/ssl:/etc/ssl
- ./app:/var/www/${PROJECT_NAME:?must be specified}
networks:
- default
mysql:
restart: unless-stopped
container_name: ${CONTAINER_PREFIX:?must be specified}_mysql
image: mysql:8.0.29
ports:
- '${MYSQL_PORT:-3306}:3306'
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-root}
- MYSQL_USER=${MYSQL_USER:-dev}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-dev}
- MYSQL_DATABASE=${MYSQL_DATABASE:-dev}
volumes:
- ./services/mysql/config/my.cnf:/etc/mysql/conf.d/my.cnf
- ./services/mysql/data:/var/lib/mysql
networks:
- default
redis:
restart: unless-stopped
container_name: ${CONTAINER_PREFIX:?must be specified}_redis
image: redis:7.0.0-alpine
expose:
- '6379'
volumes:
- ./app:/var/www/${PROJECT_NAME:?must be specified}
- ./services/redis/data:/data
- ./services/redis/config/redis.conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf
networks:
- default
swagger:
restart: unless-stopped
container_name: ${CONTAINER_PREFIX:?must be specified}_swagger
image: swaggerapi/swagger-ui:v4.11.1
ports:
- '${SWAGGER_PORT:-7000}:7000'
environment:
- API_URL=${SWAGGER_API_URL}
volumes:
- ./app:/var/www/${PROJECT_NAME:?must be specified}
networks:
- default
mailhog:
restart: unless-stopped
container_name: ${CONTAINER_PREFIX:?must be specified}_mailhog
image: mailhog/mailhog:v1.0.1
ports:
- '${SMTP_PORT:-1025}:1025'
- '${MAILHOG_PORT:-8025}:8025'
environment:
- MH_STORAGE=maildir
- MH_HOSTNAME=${SMTP_HOSTNAME:-mailhog.example}
volumes:
- ./services/mailhog/maildir:/maildir
networks:
default:
external: true
name: ${PROJECT_NAME:?must be specified}