-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (52 loc) · 1.78 KB
/
docker-compose.yml
File metadata and controls
53 lines (52 loc) · 1.78 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
services:
postgres:
image: postgres:16.0-alpine
container_name: snapsmaps-postgres-db
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=snapsmaps
ports:
- "5432:5432"
volumes:
- ./db-data:/var/lib/postgresql/data
snapsmaps:
image: snapsmaps:test
container_name: snapsmaps
restart: always
depends_on:
- postgres
environment:
# SERVER SETTINGS
NODE_ENV: "production"
DOMAIN: "http://localhost:8888/" # The domain where the app is hosted
SECRET_KEY: "some-random-generated-secret-string"
MAX_UPLOAD_SIZE_IN_MB: "10"
ADMINS: "myaccountemail@domain.com,mytrustworthyfriend@domain.com"
ALLOWED_DOMAINS: "http://localhost:8888/,https://mylivedomain.tld" # CORS domains
SECURE_COOKIES: "true" # Set to false if using http
# DATABASE SETTINGS
DB_USERNAME: "postgres"
DB_PASSWORD: "postgres"
DB_NAME: "snapsmaps"
DB_HOST: "postgres"
DB_PORT: "5432"
# REQUIRED FOR USER CREATION
SMTP_USER: ""
SMTP_HOST: ""
SMTP_PORT: "587"
SMTP_SECURITY: "ssl" # ssl | starttls | none
SMTP_EMAIL: ""
SMTP_PASSWORD: ""
# SITE MANIFEST / METADATA SETTINGS
START_URL: "http://localhost:8888/" # Used in site manifest
SCOPE: "http://localhost:8888/" # Used in site manifest
SITE_NAME: "Snapsmaps" # Used in site manifest
SITE_SHORT_NAME: "Snapsmaps" # User in site manifest
MANIFEST_ID: "some-random-generated-unique-string" # Used in site manifest
DESCRIPTION: "Easily share photos with a map pin to friends and family."
ports:
- "8888:80"
volumes:
- ./snapsmaps/images:/content/images:rw # The directory where user images are stored