-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.production.yml
45 lines (42 loc) · 1.08 KB
/
docker-compose.production.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
x-logging: &highlight-logging
driver: fluentd
options:
fluentd-address: "tls://otel.highlight.io:24284"
fluentd-async: "true"
fluentd-sub-second-precision: "true"
tag: "highlight.project_id=4d7yx5xd"
services:
server:
build:
context: ./
dockerfile: Dockerfile
restart: always
volumes:
- ~/data/lenslocked.com/images:/app/images
# This is for testing purposes.
# TODO: Remove before deploying. -- START
# ports:
# - 3000:3000
# TODO: Remove before deploying. -- END
depends_on:
- db
logging: *highlight-logging
caddy:
image: caddy
restart: always
ports:
- 80:80
- 443:443
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ~/data/lenslocked.com/caddy:/data
logging: *highlight-logging
db:
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_USER: ${PSQL_USER}
POSTGRES_PASSWORD: ${PSQL_PASSWORD}
POSTGRES_DB: ${PSQL_DATABASE}
volumes:
- ~/data/lenslocked.com/psql:/var/lib/postgresql/data/pgdata
logging: *highlight-logging