-
Notifications
You must be signed in to change notification settings - Fork 25
/
docker-compose.yml
49 lines (49 loc) · 950 Bytes
/
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
version: '3'
services:
nginx:
# https://hub.docker.com/_/nginx/
image: 'nginx:1.15-alpine'
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx:/nginx
ports:
- '80:80'
links:
- client
- server
client:
# https://hub.docker.com/_/node/
build: ./client
ports:
- '2602:2602'
volumes:
- ./client:/client
links:
- server
env_file:
- .env
server:
# https://hub.docker.com/_/node/
build: ./server
ports:
- '2601:2601'
volumes:
- ./server:/server
links:
- postgres
env_file:
- .env
postgres:
# https://hub.docker.com/_/postgres/
build: ./postgres
ports:
- '2600:2600'
environment:
POSTGRES_DB: sagefy
POSTGRES_USER: sagefy
command: -p 2600
volumes:
- ./postgres-data:/var/lib/postgresql/data
- ./postgres:/postgres
env_file:
- .env