-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (45 loc) · 1.08 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
version: 3.0
services:
api:
build:
context: api
dockerfile: api/Dockerfile
image: api
restart: unless-stopped
links:
- postgres
depends_on:
- postgres
environment:
DB: postgresql://tracktor:tracktor@postgres:5432/tracktor
frontend:
build:
context: frontend
dockerfile: frontend/Dockerfile
image: frontend
restart: unless-stopped
depends_on:
- api
nginx:
build:
context: nginx
dockerfile: nginx/Dockerfile
image: tracktor-nginx
restart: unless-stopped
links:
- api
- frontend
depends_on:
- api
- frontend
postgres:
image: postgres:13-alpine
restart: unless-stopped
environment:
POSTGRES_USER: tracktor
POSTGRES_DB: tracktor
POSTGRES_PASSWORD: tracktor
volumes:
- postgres:/var/lib/postgresql/data
volumes:
postgres: