-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.lukasz.yaml
141 lines (139 loc) · 3.57 KB
/
docker-compose.lukasz.yaml
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
version: '3'
services:
#PHP Service
app:
build:
context: .
dockerfile: ./.docker/prod/app/Dockerfile.lukasz
user: "www-data:www-data"
container_name: app
restart: unless-stopped
tty: true
environment:
SERVICE_NAME: app
SERVICE_TAGS: dev
working_dir: /var/www
volumes:
- ./:/var/www
- ./.docker/prod/app/php.ini:/usr/local/etc/php/conf.d/local.ini
networks:
- api
#Nginx Service
webserver:
image: nginx:alpine
container_name: webserver
restart: unless-stopped
tty: true
ports:
- "1280:80"
- "12443:443"
volumes:
- ./:/var/www
- ./.docker/prod/webserver/nginx:/etc/nginx/conf.d/
networks:
- api
labels:
- "traefik.http.routers.treeAPI.rule=Host(`tree.localhost`) && PathPrefix(`/api`)"
#command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
#MySQL Service
db:
image: mysql:8.0
container_name: db
restart: unless-stopped
tty: true
#ports:
# - "3306:3306"
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_ALLOW_EMPTY_PASSWORD: yes
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- ./.docker/prod/db/dbdata:/var/lib/mysql/
- ./.docker/prod/db/mysql/my.cnf:/etc/mysql/my.cnf
networks:
- api
command:
- --sort_buffer_size=1073741824
myadmin:
image: 'phpmyadmin:latest'
ports:
- 12808:80
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
PMA_HOST: mysql
links:
- "db:mysql"
depends_on:
- db
networks:
- api
labels:
- "traefik.http.routers.treepma.rule=Host(`pma.tree.localhost`)"
supervisor:
build:
context: .
dockerfile: ./.docker/prod/supervisor/Dockerfile
container_name: supervisor
volumes:
- ./:/var/www
- ./.docker/prod/supervisor/supervisord.conf:/etc/supervisor/supervisord.conf
networks:
- api
# laravel-echo-server:
# image: oanhnn/laravel-echo-server:latest
# # environment:
# # LARAVEL_ECHO_SERVER_AUTH_HOST: http://example.com
# # LARAVEL_ECHO_SERVER_DEBUG: 'true'
# # LARAVEL_ECHO_SERVER_DATABASE: sqlite
# ports:
# - 6001:6001
# restart: unless-stopped
# volumes:
# - ./laravel-echo-server.json:/app/laravel-echo-server.json:ro
# healthcheck:
# # test: node /usr/local/src/healthcheck.js
# test: /usr/local/bin/health-check
# start_period: 5s
# interval: 3s
# timeout: 3s
# retries: 10
# networks:
# - api
redis:
image: 'bitnami/redis:latest'
ports:
- 6379:6379
environment:
- ALLOW_EMPTY_PASSWORD=yes
networks:
- api
mailcatcher:
image: schickling/mailcatcher
ports:
- "${MAILCATCHER_WEB_PORT-1290}:1080"
- "${MAILCATCHER_SMTP_PORT-1289}:1025"
labels:
- "traefik.http.routers.mctreeAPI.rule=Host(`mailcatcher.tree.localhost`)"
- "traefik.http.services.mctreeAPI.loadbalancer.server.port=1080"
networks:
- api
# sphinx:
# image: macbre/sphinxsearch:3.4.1
# ports:
# - "127.0.0.1:36307:36307" # bind to local interface only!
# volumes:
# - ./.docker/prod/sphinx/data:/opt/sphinx/index # directory where sphinx will store index data
# - ./.docker/prod/sphinx/sphinx.conf:/opt/sphinx/conf/sphinx.conf # SphinxSE configuration file
# mem_limit: 512m # match indexer.value from sphinx.conf
# networks:
# - api
#Docker Networks
networks:
api:
driver: bridge
#Volumes
volumes:
dbdata:
driver: local