-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (45 loc) · 973 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
50
version: '3.5'
services:
db:
image: postgres:11.1-alpine
container_name: postgres_auth
environment:
- POSTGRES_DB=dcauth
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=secret
- TZ=GMT
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- 5432:5432
backend:
build:
context: ./server
container_name: backend_auth
env_file:
- variables.env
volumes:
- ./server/routes:/app/routes
- ./server/config:/app/config
- ./server/utils:/app/utils
- ./server/models:/app/models
- ./server/server.js:/app/server.js
ports:
- "5000:5000"
depends_on:
- db
frontend:
build:
context: ./client
container_name: frontend_auth_dev
env_file:
- variables.env
volumes:
- ./client/src:/app/src
- ./client/public:/app/public
ports:
- "8080:8080"
depends_on:
- backend
volumes:
postgres_data: