forked from asmbly-makerspace/asmbly-classes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
76 lines (72 loc) · 1.54 KB
/
Copy pathcompose.dev.yaml
File metadata and controls
76 lines (72 loc) · 1.54 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
networks:
frontend:
backend:
services:
db:
image: postgres:16
restart: unless-stopped
networks:
- backend
- frontend
ports:
- "5432:5432"
environment:
POSTGRES_USER_FILE: /run/secrets/postgres-user
POSTGRES_PASSWORD_FILE: /run/secrets/postgres-password
TZ: "America/Chicago"
PGTZ: "America/Chicago"
volumes:
- postgres:/var/lib/postgresql/data
secrets:
- postgres-user
- postgres-password
app:
env_file:
- .env
build:
context: ./app
dockerfile: Dockerfile.dev
secrets:
- postgres-user
- postgres-password
args:
POSTGRES_USER_FILE: /run/secrets/postgres-user
POSTGRES_PASSWORD_FILE: /run/secrets/postgres-password
restart: unless-stopped
networks:
- frontend
- backend
ports:
- "127.0.0.1:5173:5173"
- "127.0.0.1:24678:24678"
- "127.0.0.1:5555:5555"
volumes:
- ./app:/usr/src/app
- /usr/src/app/node_modules
environment:
DEVELOPMENT: "true"
TZ: "America/Chicago"
depends_on:
- db
secrets:
- postgres-user
- postgres-password
cron:
env_file:
- .env
build: ./cron-service
depends_on:
- db
restart: unless-stopped
volumes:
- ./cron-service:/usr/src/app
- /usr/src/app/node_modules
networks:
- backend
volumes:
postgres:
secrets:
postgres-user:
file: ./secrets/postgres-user.txt
postgres-password:
file: ./secrets/postgres-password.txt