-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (70 loc) · 1.84 KB
/
docker-compose.yml
File metadata and controls
74 lines (70 loc) · 1.84 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
services:
flexit-analytics:
platform: linux/amd64
container_name: flexit-analytics
hostname: ${PUBLIC_DNS}
networks:
- flexit-network
build:
context: .
dockerfile: Dockerfile
image: ghcr.io/flexanalytics/flexit:${FLEXIT_VERSION}
pull_policy: missing
env_file: .env
restart: unless-stopped
depends_on:
flexit-content-database:
condition: service_healthy
environment:
DATABASE_URL: postgres://${DB_USER}:${DB_PASSWORD}@flexit-content-database:5432/${DB_NAME}
NODE_ENV: development
PORT: ${FLEXIT_PORT}
VIRTUAL_HOST: ${PUBLIC_DNS}
VIRTUAL_PORT: 3030
LETSENCRYPT_HOST: ${PUBLIC_DNS}
LETSENCRYPT_EMAIL: ${CERT_EMAIL}
ports:
- "${FLEXIT_PORT}:3030"
volumes:
- flexit_config:/opt/flexit/config
- flexit_datasets:/opt/flexit/datasets
- flexit_deployments:/opt/flexit/deployments
- flexit_logs:/opt/flexit/logs
- flexit_webcontent:/opt/flexit/webcontent
flexit-content-database:
container_name: flexit-content-database
image: postgres:15
platform: linux/amd64
restart: unless-stopped
networks:
- flexit-network
ports:
- "${DB_PORT}:5432"
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER}"]
interval: 10s
timeout: 5s
retries: 5
volumes:
flexit_config:
name: flexit_config
flexit_datasets:
name: flexit_datasets
flexit_deployments:
name: flexit_deployments
flexit_logs:
name: flexit_logs
flexit_webcontent:
name: flexit_webcontent
postgres_data:
name: postgres_data
networks:
flexit-network:
name: flexit-network
driver: bridge