-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
193 lines (182 loc) · 5.59 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
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
networks:
escola_lms:
name: escola_lms
driver: bridge
services:
caddy:
image: caddy
volumes:
- ./docker/conf/Caddyfile:/etc/caddy/Caddyfile
- ./caddy/certs:/etc/caddy/certs
- ./caddy/data:/data
- ./caddy/config:/config
networks:
- escola_lms
ports:
- "80:80"
- "443:443"
api:
# image: escolalms/php:8.4-alpine ## or escolalms/php:8-work for debugginh
# command: sleep infinity
build:
context: .
dockerfile: Dockerfile.develop
environment:
- LARAVEL_APP_NAME=Wellms
- LARAVEL_APP_ENV=local
- LARAVEL_APP_KEY=base64:jgaCduGIEEmn4/UMJR5d38Y5ncfNE+rXqV3Fvewd37w=
- LARAVEL_APP_DEBUG=true
- LARAVEL_APP_LOG_LEVEL=debug
- LARAVEL_APP_URL=http://api.localhost
- LARAVEL_DB_CONNECTION=pgsql
- LARAVEL_DB_HOST=postgres
- LARAVEL_DB_PORT=5432
- LARAVEL_DB_DATABASE=default
- LARAVEL_DB_USERNAME=default
- LARAVEL_DB_PASSWORD=secret
- LARAVEL_REDIS_HOST=redis
- LARAVEL_REDIS_PASSWORD=escola_lms
- LARAVEL_REDIS_PORT=6379
- LARAVEL_BROADCAST_DRIVER=log
- LARAVEL_CACHE_DRIVER=redis
- LARAVEL_SESSION_DRIVER=cookie
- LARAVEL_QUEUE_DRIVER=redis
- LARAVEL_QUEUE_CONNECTION=redis
- LARAVEL_MAIL_DRIVER=smtp
- LARAVEL_MAIL_HOST=mailhog
- LARAVEL_MAIL_PORT=1025
- LARAVEL_MAIL_USERNAME=null
- LARAVEL_MAIL_PASSWORD=null
- LARAVEL_MJML_BINARY_PATH=/usr/bin/mjml
- LARAVEL_TRACKER_ENABLED=false
- LARAVEL_FILESYSTEM_DRIVER=s3
- LARAVEL_AWS_ACCESS_KEY_ID=admin
- LARAVEL_AWS_SECRET_ACCESS_KEY=minio_secretpassword
- LARAVEL_AWS_DEFAULT_REGION=us-east-1
- LARAVEL_AWS_BUCKET=wellms
# Intenal Docker address
- LARAVEL_AWS_ENDPOINT="http://minio:9000"
- LARAVEL_AWS_URL="http://storage.localhost/wellms"
- LARAVEL_AWS_USE_PATH_STYLE_ENDPOINT=true
- LARAVEL_INITIAL_USER_PASSWORD=secret
volumes:
- ./:/var/www/html
networks:
- escola_lms
# escola_lms_queue_cron:
# command: "./init.sh"
# image: escolalms/php:8.2-prod ## or escolalms/php:8-work for debugginh
# environment:
# - LARAVEL_APP_NAME=Wellms
# - LARAVEL_APP_ENV=local
# - LARAVEL_APP_KEY=base64:jgaCduGIEEmn4/UMJR5d38Y5ncfNE+rXqV3Fvewd37w=
# - LARAVEL_APP_DEBUG=true
# - LARAVEL_APP_LOG_LEVEL=debug
# - LARAVEL_APP_URL=http://api.localhost
# - LARAVEL_DB_CONNECTION=pgsql
# - LARAVEL_DB_HOST=postgres
# - LARAVEL_DB_PORT=5432
# - LARAVEL_DB_DATABASE=default
# - LARAVEL_DB_USERNAME=default
# - LARAVEL_DB_PASSWORD=secret
# - LARAVEL_REDIS_HOST=redis
# - LARAVEL_REDIS_PASSWORD=escola_lms
# - LARAVEL_REDIS_PORT=6379
# - LARAVEL_BROADCAST_DRIVER=log
# - LARAVEL_CACHE_DRIVER=redis
# - LARAVEL_SESSION_DRIVER=cookie
# - LARAVEL_QUEUE_DRIVER=redis
# - LARAVEL_QUEUE_CONNECTION=redis
# - LARAVEL_MAIL_DRIVER=smtp
# - LARAVEL_MAIL_HOST=mailhog
# - LARAVEL_MAIL_PORT=1025
# - LARAVEL_MAIL_USERNAME=null
# - LARAVEL_MAIL_PASSWORD=null
# - LARAVEL_MJML_BINARY_PATH=/usr/bin/mjml
# - LARAVEL_TRACKER_ENABLED=false
# - LARAVEL_FILESYSTEM_DRIVER=s3
# - LARAVEL_AWS_ACCESS_KEY_ID=masoud
# - LARAVEL_AWS_SECRET_ACCESS_KEY=tg9t712TG1Odn17fisxXM9y01YrD
# - LARAVEL_AWS_DEFAULT_REGION=us-east-1
# - LARAVEL_AWS_BUCKET=wellms
# - LARAVEL_AWS_ENDPOINT="http://minio:9000"
# - LARAVEL_AWS_URL="http://storage.localhost:1001/wellms"
# - LARAVEL_AWS_USE_PATH_STYLE_ENDPOINT=true
# volumes:
# - ./:/var/www/html
# networks:
# - escola_lms
admin:
platform: linux/amd64
networks:
- escola_lms
image: escolalms/admin
environment:
- API_URL=http://api.localhost
front:
platform: linux/amd64
networks:
- escola_lms
image: escolalms/demo
environment:
- API_URL=http://api.localhost
postgres:
image: postgres:12
# ports:
# - "5432:5432"
networks:
- escola_lms
volumes:
- ./docker/postgres-data:/var/lib/postgresql/data
- ./docker/postgres-backups:/var/lib/postgresql/backups
environment:
- "POSTGRES_DB=${POSTGRES_DB:-default}"
- "POSTGRES_USER=${POSTGRES_USER:-default}"
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-secret}"
- TZ=Europe/Warsaw
adminer:
networks:
- escola_lms
image: adminer
ports:
- 8078:8080
mailhog:
networks:
- escola_lms
image: mailhog/mailhog
logging:
driver: "none" # disable saving logs
ports:
#- 1025:1025 # smtp server
- 8025:8025 # web ui
redis:
networks:
- escola_lms
image: "redis"
command: "redis-server --requirepass ${REDIS_PASSWORD:-escola_lms}"
reportbro:
networks:
- escola_lms
image: escolalms/reportbro-server:latest
mjml:
image: danihodovic/mjml-server
# ports:
# - 8080:80
minio:
image: bitnami/minio
networks:
- escola_lms
# ports:
# - "9000:9000"
# - "9001:9001"
volumes:
- ./docker/minio_storage:/bitnami/minio/data
- ./docker/conf/minio:/docker-entrypoint-initdb.d
environment:
MINIO_DEFAULT_BUCKETS: "${MINIO_DEFAULT_BUCKETS:-wellms}"
MINIO_ROOT_USER: "${MINIO_ROOT_USER:-admin}"
MINIO_ROOT_PASSWORD: "${MINIO_ROOT_PASSWORD:-minio_secretpassword}"
# AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}:admin
# AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}:minio_secretpassword
# AWS_BUCKET: ${AWS_BUCKET}:wellms"
# AWS_ENDPOINT: ${AWS_ENDPOINT}