Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
111 lines (102 loc) · 2.53 KB
/
Copy pathdocker-compose.yml
File metadata and controls
111 lines (102 loc) · 2.53 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
106
107
108
109
110
111
x-php: &php
build:
context: docker/php
args:
PHP_VERSION: "8.5"
COMPOSER_VERSION: "2.10"
HOST_UID: ${HOST_UID:-1001}
HOST_GID: ${HOST_GID:-1001}
image: php:8.5-ieducar
working_dir: /var/www/ieducar
volumes:
- ./:/var/www/ieducar
links:
- postgres
- redis
depends_on:
postgres:
condition: service_started
redis:
condition: service_started
environment:
CACHE_DRIVER: redis
REDIS_HOST: redis
DB_HOST: postgres
PGPASSWORD: ${DB_PASSWORD:-ieducar}
extra_hosts:
- host.docker.internal:host-gateway
services:
php:
<<: *php
container_name: ieducar-php
command: tail -f /dev/null
depends_on: []
fpm:
<<: *php
container_name: ieducar-fpm
horizon:
<<: *php
container_name: ieducar-horizon
command: /var/www/ieducar/artisan horizon
restart: always
nginx:
container_name: ieducar-nginx
image: nginx:1.30-alpine
links:
- fpm
working_dir: /var/www/ieducar
volumes:
- ./:/var/www/ieducar
- ./docker/nginx/conf.d/:/etc/nginx/conf.d/
- ./docker/nginx/snippets:/etc/nginx/snippets/
ports:
- ${DOCKER_NGINX_PORT:-80}:80
- ${DOCKER_NGINX_SSL_PORT:-443}:443
postgres:
container_name: ieducar-postgres
image: postgres:18-alpine
environment:
POSTGRES_DB: ${DB_DATABASE:-ieducar}
POSTGRES_USER: ${DB_USERNAME:-ieducar}
POSTGRES_PASSWORD: ${DB_PASSWORD:-ieducar}
PGUSER: ${DB_USERNAME:-ieducar}
volumes:
- postgres:/var/lib/postgresql/18/docker
ports:
- ${DOCKER_POSTGRES_PORT:-5432}:5432
redis:
container_name: ieducar-redis
image: redis:8-alpine
restart: always
ports:
- ${DOCKER_REDIS_PORT:-6379}:6379
pest:
build:
context: docker/pest
args:
PHP_VERSION: "8.5"
COMPOSER_VERSION: "2.10"
PLAYWRIGHT_VERSION: "1.62.1"
image: ieducar-pest:latest
container_name: ieducar-pest
working_dir: /var/www/ieducar
volumes:
- ./:/var/www/ieducar
- pest_node_modules:/var/www/ieducar/node_modules
# Grafo do `pest --tia`, que sobrevive à recriação do container.
- pest_tia:/root/.pest
depends_on:
postgres:
condition: service_started
redis:
condition: service_started
environment:
CACHE_DRIVER: redis
REDIS_HOST: redis
DB_HOST: postgres
# O Chromium precisa de mais memória compartilhada que o padrão de 64 MB.
shm_size: 2gb
volumes:
postgres:
pest_node_modules:
pest_tia: