-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
142 lines (135 loc) · 3.07 KB
/
docker-compose.dev.yml
File metadata and controls
142 lines (135 loc) · 3.07 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
services:
proxy:
image: nginx:latest
container_name: fynncloud-proxy-dev
restart: unless-stopped
depends_on:
- backend
- web
volumes:
- ./nginx-proxy.conf.template:/etc/nginx/templates/default.conf.template:ro
environment:
- MAX_BODY_SIZE=${MAX_BODY_SIZE}
networks:
- fynncloud-network
ports:
- "${PROXY_PORT}:80"
healthcheck:
test:
[
"CMD",
"wget",
"--quiet",
"--tries=1",
"--spider",
"http://localhost:80/health",
]
interval: 30s
timeout: 10s
retries: 3
db:
image: postgres:16-alpine
container_name: fynncloud-db-dev
restart: unless-stopped
environment:
POSTGRES_DB: fynncloud
POSTGRES_USER: fynncloud
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- postgres_data_dev:/var/lib/postgresql/data
networks:
- fynncloud-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U fynncloud -d fynncloud"]
interval: 10s
timeout: 5s
retries: 5
backend:
image: fynncloud-backend:latest
container_name: fynncloud-backend-dev
restart: unless-stopped
user: "0:0"
depends_on:
db:
condition: service_healthy
environment:
DATABASE_URL: postgresql://fynncloud:${DB_PASSWORD}@db:5432/fynncloud
STORAGE_PATH: /app/Storage/
APP_NAME: ${APP_NAME}
PRIMARY_COLOR: ${PRIMARY_COLOR}
JWT_SECRET: ${JWT_SECRET}
CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS}
FRONTEND_URL: ${FRONTEND_URL}
MAX_CHUNK_SIZE: ${MAX_CHUNK_SIZE}mb
MAX_BODY_SIZE: ${MAX_BODY_SIZE}mb
LOG_LEVEL: ${LOG_LEVEL}
volumes:
- backend_storage_dev:/app/Storage
networks:
- fynncloud-network
ports:
- "8080:8080"
expose:
- "8080"
command:
[
"serve",
"--env",
"development",
"--hostname",
"0.0.0.0",
"--port",
"8080",
"--log",
"debug",
]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
web:
image: fynncloud-web:latest
container_name: fynncloud-web-dev
restart: unless-stopped
networks:
- fynncloud-network
ports:
- "3000:80"
expose:
- "80"
healthcheck:
test:
[
"CMD",
"wget",
"--quiet",
"--tries=1",
"--spider",
"http://localhost:80",
]
interval: 30s
timeout: 10s
retries: 3
adminer:
image: adminer:latest
container_name: fynncloud-adminer
restart: unless-stopped
depends_on:
- db
networks:
- fynncloud-network
ports:
- "8081:8080"
environment:
ADMINER_DEFAULT_SERVER: db
ADMINER_DEFAULT_DB: fynncloud
ADMINER_DEFAULT_USER: fynncloud
ADMINER_DEFAULT_PASS: ${DB_PASSWORD}
ADMINER_DESIGN: "pepa-linha"
networks:
fynncloud-network:
driver: bridge
volumes:
postgres_data_dev:
backend_storage_dev: