forked from codefordenver/ideaLab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (47 loc) · 965 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
version: "3"
services:
api:
depends_on:
- postgres
build:
context: .
dockerfile: gradle.dockerfile
ports:
- "8080:8080"
- "8443:8443"
volumes:
- "./Backend:/srv"
env_file:
- "./dev.env"
command: ash -c 'nodemon --legacy-watch --watch ./src --exec "gradle bootRun" --ext .java'
postgres:
image: postgres:11-alpine
hostname: postgres
ports:
- "5432:5432"
env_file:
- "./dev.env"
pgadmin:
image: dpage/pgadmin4
depends_on:
- postgres
ports:
- "5555:80"
env_file:
- "./dev.env"
restart: unless-stopped
frontend:
build:
context: .
dockerfile: Dockerfile.node
ports:
- "3000:3000"
depends_on:
- api
environment:
BACKEND: api:9000
env_file:
- "./dev.env"
volumes:
- ./Frontend:/srv
command: ["npm", "run", "start"]