-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (54 loc) · 1.19 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
version: "3.6"
services:
web:
image: evaldobarbosa/thecomm-php8-nginx
build:
context: ./webapp
dockerfile: ./Dockerfile
restart: unless-stopped
environment:
- FRAMEWORK=laravel
- XDEBUG_ENABLED=false
- OPCACHE_MODE=normal
- PHP_MEMORY_LIMIT=256M
- LANG=pt_BR.UTF-8
- TZ=America/Fortaleza
- DB_CONNECTION=pgsql
- DB_HOST=db
- DB_PORT=5432
- DB_DATABASE=thecomm
- DB_USERNAME=thecomm
- DB_PASSWORD=thecomm
links:
- db
networks:
- default
- proxymng
db:
image: postgres:latest
restart: unless-stopped
volumes:
- ./pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=thecomm
- POSTGRES_PASSWORD=thecomm
- POSTGRES_DB=thecomm
- PGDATA=./pgdata
- TZ=America/Fortaleza
queue:
image: evaldobarbosa/thecomm-php8-nginx
restart: unless-stopped
command: php artisan queue:work --tries=5 --sleep=5
environment:
- PHP_MEMORY_LIMIT=256M
- LANG=pt_BR.UTF-8
- TZ=America/Fortaleza
depends_on:
- web
links:
- db
networks:
default:
driver: bridge
proxymng:
external: true