-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
64 lines (61 loc) · 1.16 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
57
58
59
60
61
62
63
64
version: '3.5'
services:
# API
foodlord-api-app:
image: foodlord-api-app
container_name: foodlord-api-app
env_file:
- api/.env
build:
context: api
dockerfile: Dockerfile
networks:
- foodlord
ports:
- 9081:9081
- 3081:3081
restart: always
depends_on:
- foodlord-api-nginx
foodlord-api-nginx:
image: foodlord-api-nginx
container_name: foodlord-api-nginx
build:
context: api
dockerfile: Dockerfile.nginx
networks:
- foodlord
ports:
- 8081:8081
restart: always
# Client
foodlord-client-app:
container_name: foodlord-client-app
build:
context: client
dockerfile: Dockerfile
volumes:
- './client:/usr/src/app'
- '/usr/src/app/node_modules'
ports:
- 80:3000
environment:
- NODE_ENV=development
restart: always
# DB
foodlord-db:
image: foodlord-db
container_name: foodlord-db
build:
context: db
dockerfile: Dockerfile
restart: always
networks:
- foodlord
ports:
- 5432:5432
# FoodLord network
networks:
foodlord:
name: foodlord
driver: bridge