-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
93 lines (87 loc) · 2.08 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
version: "3.7"
services:
api:
image: ambientum/php:8.1-nginx
container_name: emitte_api
restart: unless-stopped
# comment next block if you are not using reverse proxy on local
ports:
- 9080:8080
volumes:
- ./api:/var/www/app
environment:
- FRAMEWORK=laravel
- XDEBUG_ENABLED=false
- OPCACHE_MODE=normal
- PHP_MEMORY_LIMIT=256M
- LANG=pt_BR.UTF-8
- TZ=America/Fortaleza
- APP_ENV=local
- DB_CONNECTION=pgsql
- DB_HOST=db
- DB_PORT=5432
- DB_DATABASE=emitte
- DB_USERNAME=emitte
- DB_PASSWORD=emitte
depends_on:
- db
links:
- db
# - mailhog
networks:
emitte_net:
aliases:
- fake.geradornf.test
front:
# image: node:latest
build:
context: .
dockerfile: web/Dockerfile
container_name: emitte_front
restart: unless-stopped
working_dir: /home/node/app
# command: npm run dev
# comment next block if you are not using reverse proxy on local
ports:
- 3000:3000
- 5173:5173
volumes:
- ./web:/home/node/app
depends_on:
- api
db:
image: postgres:latest
container_name: emitte_db
restart: unless-stopped
# volumes:
# - ./pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=emitte
- POSTGRES_PASSWORD=emitte
- POSTGRES_DB=emitte
# - PGDATA=./pgdata
- TZ=America/Fortaleza
networks:
- emitte_net
# queue:
# image: ambientum/php:8.0-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
# volumes:
# - ./:/var/www/app
# depends_on:
# - web
# links:
# - db
# mailhog: # MailHog - Fake SMTP server (optional).
# image: mailhog/mailhog:latest
# ports:
# - '1026:1025' # Port 1025 => SMTP.
# - '8026:8025' # Port 8025 => Web dashboard (http://127.0.0.1:8025).
networks:
emitte_net:
driver: bridge