-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yaml
65 lines (62 loc) · 1.97 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
60
61
62
63
64
65
---
services:
app: &app_env
build:
context: .
dockerfile: Dockerfile.dev
ports:
- 127.0.0.1:8080:8080
environment:
FLASK_APP: hushline
FLASK_ENV: development
ENCRYPTION_KEY: bi5FDwhZGKfc4urLJ_ChGtIAaOPgxd3RDOhnvct10mw=
SECRET_KEY: cb3f4afde364bfb3956b97ca22ef4d2b593d9d980a4330686267cabcd2c0befd
SQLALCHEMY_DATABASE_URI: postgresql://hushline:hushline@postgres:5432/hushline
REGISTRATION_CODES_REQUIRED: 'false'
ALIAS_MODE: always
SESSION_COOKIE_NAME: session
NOTIFICATIONS_ADDRESS: [email protected]
DIRECTORY_VERIFIED_TAB_ENABLED: "${DIRECTORY_VERIFIED_TAB_ENABLED:-true}"
SMTP_FORWARDING_MESSAGE_HTML: |
✊ Email forwarding is powered by
<a href="https://riseup.net" target="_blank">Riseup.net</a>.
BLOB_STORAGE_PUBLIC_DRIVER: s3
BLOB_STORAGE_PUBLIC_S3_BUCKET: public
BLOB_STORAGE_PUBLIC_S3_REGION: us-east-1 # from localstack defaults
BLOB_STORAGE_PUBLIC_S3_ENDPOINT: "http://blob-storage:4566/"
BLOB_STORAGE_PUBLIC_S3_CDN_ENDPOINT: "http://localhost:4566/public/"
BLOB_STORAGE_PUBLIC_S3_ACCESS_KEY: "test" # from localstack defaults
BLOB_STORAGE_PUBLIC_S3_SECRET_KEY: "test" # from localstack defaults
volumes:
- ./:/app
depends_on:
- postgres
- blob-storage
restart: always
dev_data:
<<: *app_env
ports: []
restart: on-failure
command: make dev-data
depends_on:
- postgres
postgres:
image: postgres:16.4-alpine3.20
environment:
POSTGRES_USER: hushline
POSTGRES_PASSWORD: hushline
POSTGRES_DB: hushline
ports:
- 127.0.0.1:5432:5432
blob-storage:
image: localstack/localstack:latest
environment:
SERVICES: s3
EDGE_PORT: "4566"
HOSTNAME: blob-storage
HOSTNAME_EXTERNAL: localhost:4566
START_WEB: "0"
SKIP_INFRA_DOWNLOADS: "true"
ports:
- "127.0.0.1:4566:4566"
- "127.0.0.1:4571:4571"