forked from Kaponn/drink-up
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (54 loc) · 1.05 KB
/
docker-compose.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
version: '3.1'
services:
nginx:
mem_limit: 300
image: goorsky/drink-up-nginx:v1.0.0
depends_on:
- backend
- frontend
restart: always
build:
dockerfile: Dockerfile
context: ./nginx
ports:
- '80:80'
frontend:
image: goorsky/drink-up-frontend:v1.0.0
mem_limit: 300
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- '3000:80'
volumes:
- node_modules:/app/node_modules
- ./frontend:/app
backend:
image: goorsky/drink-up-backend:v1.0.0
mem_limit: 300
build:
context: ./backend
dockerfile: Dockerfile
depends_on:
- db
ports:
- '9000:9000'
volumes:
- ./backend:/backend
db:
image: goorsky/drink-up-db:v1.0.0
mem_limit: 300
build:
context: ./postgres
dockerfile: Dockerfile
environment:
POSTGRES_PASSWORD: psswrd
restart: always
ports:
- '5432:5432'
volumes:
- db-data:/var/lib/postgresql/data
volumes:
db-data:
driver: local
node_modules: