-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
59 lines (53 loc) · 1.21 KB
/
docker-compose.yaml
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
version: '3.9'
services:
db:
image: postgres:15-alpine
environment:
POSTGRES_PASSWORD: postgres
volumes:
- db:/var/lib/postgresql/data
cache:
image: redis:7-alpine
smtp:
image: dockage/mailcatcher:0.8.2
ports:
- 1080:1080
api:
build:
context: ./api
args:
PROJECT_NAME: finance_api
environment:
PASETO_PUBLIC_KEY: |
-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEARCsnT9JAkaWG+6BlBeJTKUmZY+xmn+xdwINSS4dhVHM=
-----END PUBLIC KEY-----
PASETO_PRIVATE_KEY: |
-----BEGIN PRIVATE KEY-----
MC4CAQAwBQYDK2VwBCIEIGgU582FmEz0i76AVAKH3NRcT+3fZu/SSXdhoFdzWfuH
-----END PRIVATE KEY-----
PASETO_EXPIRATION_MINUTES: 1440
CORS_ORIGINS: "*"
DATABASE_URL: postgres://postgres:postgres@db:5432/postgres?sslmode=disable
CACHE_URL: redis://cache:6379/0
SMTP_HOST: smtp
SMTP_PORT: 1025
SMTP_SECURE: false
ports:
- 8080:8080
depends_on:
- db
- cache
- smtp
web:
build:
context: ./web
args:
VITE_API_URL: http://localhost:8080/api/v1
ports:
- 80:80
depends_on:
- api
volumes:
db:
driver: local