-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
72 lines (68 loc) · 1.65 KB
/
docker-compose.dev.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
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
services:
server:
build: server
platform: linux/arm64
restart: unless-stopped
depends_on:
- sql
environment:
## These should be the names of the dependent containers listed below,
## or FQDNs/IP addresses if these services are running outside of Docker
POSTGRES_HOST: sql
## Credentials for database:
POSTGRES_USER:
POSTGRES_PASSWORD:
## Commented Values are Default:
#POSTGRES_DB: defaults to same as POSTGRES_USER
#POSTGRES_PORT: 5432
#LOG_SQL: 0 (1 for verbose SQL logs)
THREADS:
SECRET: jK7svgsiHlpi8ZZ5Ggrzsi8mbsWkG987
volumes:
- "server_data:/data"
- "./client/config.dev.yaml:/opt/app/config.yaml:ro"
- "./client/sites.dev.yaml:/opt/app/sites.yaml:ro"
- "./client/html/index.html:/opt/app/index.html:ro"
client:
build:
context: client
args:
DEV: 1
platform: linux/arm64
restart: unless-stopped
depends_on:
- server
environment:
BACKEND_HOST: server
BASE_URL:
GLEBOORU_DEV: 1
GLEBOORU_WATCH: ${GLEBOORU_WATCH}
GLEBOORU_WATCH_POLL: ${GLEBOORU_WATCH_POLL}
volumes:
- "server_data:/data:ro"
- "./client:/opt/app"
ports:
- "8888:80"
expose:
- "80"
sql:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_USER:
POSTGRES_PASSWORD:
volumes:
- "db:/var/lib/postgresql/data"
nginx:
image: nginx:1.27.0
depends_on:
- client
restart: unless-stopped
volumes:
- "./server/nginx/etc:/etc/nginx:ro"
ports:
- "4000:4000"
volumes:
server_data:
client_data:
db: