-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
98 lines (93 loc) · 2.46 KB
/
docker-compose.yml
File metadata and controls
98 lines (93 loc) · 2.46 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
name: aula-v2
include:
# aula-backend-legacy service & aula_local network
- ./legacy/docker-compose.yml
services:
aula-backend.v2:
build:
context: ./
args:
- DOCKER_TAG=local
ports:
- "8000:80"
environment:
DB_HOST: mariadb
DB_PORT: "3306"
CENTRAL_DB_HOST: ${CENTRAL_DB_HOST:-mariadb}
CENTRAL_DB_PORT: ${CENTRAL_DB_PORT:-3306}
CENTRAL_DB_NAME: ${CENTRAL_DB_NAME:-aula_database}
CENTRAL_DB_USER: ${CENTRAL_DB_USER:-aula_user}
CENTRAL_DB_PASS: ${CENTRAL_DB_PASS:-example}
volumes:
- type: bind
source: ./app
target: /opt/laravel/app
bind:
create_host_path: false
- type: bind
source: ./config
target: /opt/laravel/config
bind:
create_host_path: false
- type: bind
source: ./routes
target: /opt/laravel/routes
bind:
create_host_path: false
- type: bind
source: ./storage/oauth-private.key
target: /opt/laravel/storage/oauth-private.key
bind:
create_host_path: false
- type: bind
source: ./storage/oauth-public.key
target: /opt/laravel/storage/oauth-public.key
bind:
create_host_path: false
- type: bind
source: ./legacy/docker-local/_generated_files_data/
target: /mnt/aula-backend-legacy/files
bind:
create_host_path: false
depends_on:
mariadb:
condition: service_healthy
networks:
- aula_local
nginx:
image: nginx:stable-alpine-slim
restart: unless-stopped
ports:
- "8080:80"
volumes:
- ./nginx-reverse-proxy.conf:/etc/nginx/nginx.conf
networks:
- aula_local
# a mariadb instance is included here as a docker service, in case you need it
mariadb:
image: mariadb:11.7
ports:
- "3307:3306"
environment:
# @NOTE: if you use this container, these
# values need to be reflected in .env
MARIADB_DATABASE: aula_database
MARIADB_ROOT_PASSWORD: example
MARIADB_USER: aula_user
MARIADB_PASSWORD: example
volumes:
- ./docker/mariadb/:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
networks:
- aula_local
redis:
image: redis:latest
ports:
- 6380:6379
networks:
- aula_local