-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·98 lines (92 loc) · 2.36 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
version: '3.7'
services:
rabbit:
image: "rabbitmq:3.6.6-management"
hostname: "rabbit"
environment:
RABBITMQ_DEFAULT_USER: "rabbitmq"
RABBITMQ_DEFAULT_PASS: "rabbitmq"
RABBITMQ_DEFAULT_VHOST: "/"
ports:
- "15672:15672"
- "5672:5672"
volumes:
- "./rabbitmq/enabled_plugins:/etc/rabbitmq/enabled_plugins"
database:
container_name: database
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- '4306:3306'
volumes:
- ./mysql:/var/lib/mysql
- ./mysql-files:/var/lib/mysql-files
restart: always
php:
container_name: php
build:
context: ./php
ports:
- '9000:9000'
volumes:
- ./app:/var/www/html/symfony_docker
depends_on:
- database
nginx:
container_name: nginx
hostname: nginx-1
image: nginx:stable-alpine
ports:
- '3333:9080'
volumes:
- ./app:/var/www/html/symfony_docker
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
- database
mailhog:
container_name: programwithgio-mailhog
image: mailhog/mailhog
restart: always
logging:
driver: "none"
ports:
- "8025:8025"
- "1025:1025"
gotify:
image: gotify/server
hostname: gotify-1
ports:
- "2080:2080"
volumes:
- ./gotify-dc/data:/app/data
- ./gotify/config.yml:/etc/gotify/config.yml
restart: unless-stopped
environment:
- GOTIFY_SERVER_PORT=2080
- GOTIFY_DEFAULTUSER_NAME=user
- GOTIFY_DEFAULTUSER_PASS=pass
kong:
image: kong:latest
volumes:
- ./kong/config/kong.yml:/usr/local/kong/declarative/kong.yml
environment:
- KONG_DATABASE=off
- KONG_DECLARATIVE_CONFIG=/usr/local/kong/declarative/kong.yml
- KONG_PROXY_ACCESS_LOG=/dev/stdout
- KONG_ADMIN_ACCESS_LOG=/dev/stdout
- KONG_PROXY_ERROR_LOG=/dev/stderr
- KONG_ADMIN_ERROR_LOG=/dev/stderr
- KONG_ADMIN_LISTEN=0.0.0.0:8001, 0.0.0.0:8444 ssl
ports:
- "8000:8000"
- "8443:8443"
- "127.0.0.1:8001:8001"
- "127.0.0.1:8444:8444"
extra_hosts:
- "host.docker.internal:host-gateway"