-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
84 lines (83 loc) · 1.44 KB
/
compose.yaml
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
services:
nginx-dev:
build:
context: ./nginx
target: development
ports:
- 80:80
- 443:443
profiles:
- dev
restart: unless-stopped
nginx-prod:
build:
context: ./nginx
target: production
ports:
- 80:80
- 443:443
profiles:
- prod
restart: unless-stopped
frontend-dev:
build:
context: ./frontend
target: development
volumes:
- ./frontend/app:/app
expose:
- 3000
profiles:
- dev
restart: unless-stopped
frontend-prod:
build:
context: ./frontend
target: production
volumes:
- frontend:/app
expose:
- 3000
profiles:
- prod
restart: unless-stopped
backend-dev:
build:
context: ./backend
target: development
volumes:
- ./backend/app:/app
expose:
- 3000
profiles:
- dev
restart: unless-stopped
backend-prod:
build:
context: ./backend
target: production
volumes:
- backend:/app
expose:
- 3000
profiles:
- prod
restart: unless-stopped
postgresql:
build: ./postgresql
environment:
POSTGRES_USER: app
POSTGRES_PASSWORD: 12345678
POSTGRES_DB: app
volumes:
- postgresql:/var/lib/postgresql
expose:
- 5432
restart: unless-stopped
volumes:
frontend:
name: frontend
backend:
name: backend
postgresql:
name: postgresql