-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
111 lines (105 loc) · 2.9 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
version: '3.7'
services:
postgres:
restart: unless-stopped
image: postgres:latest
environment:
- POSTGRES_PASSWORD=${PG_PASSWORD}
volumes:
- ./postgres/data:/var/lib/postgresql/data
- ./postgres/queries:/docker-entrypoint-initdb.d/
ports:
- 5432:5432
pgadmin:
image: dpage/pgadmin4
links:
- postgres
depends_on:
- postgres
environment:
- PGADMIN_DEFAULT_EMAIL=${PG_ADMIN_DEFAULT_EMAIL}
- PGADMIN_DEFAULT_PASSWORD=${PG_ADMIN_DEFAULT_PASSWORD}
ports:
- '${PG_ADMIN_PORT}:80'
restart: unless-stopped
node-api:
restart: unless-stopped
build:
dockerfile: Dockerfile.dev
context: './node-api'
volumes:
- /app/node_modules
- ./node-api:/app
environment:
- PG_USER=${PG_USER}
- PG_PASSWORD=${PG_PASSWORD}
- PG_HOST=${PG_HOST}
- PG_PORT=${PG_PORT}
- PG_DATABASE=${PG_DATABASE}
- API_PORT=${NODE_API_PORT}
- CHOKIDAR_USEPOLLING=true
ports:
- '${NODE_API_PORT}:${NODE_API_PORT}'
python-api:
restart: unless-stopped
build:
dockerfile: Dockerfile.dev
context: './python-api'
volumes:
- ./python-api:/app
environment:
- PG_USER=${PG_USER}
- PG_PASSWORD=${PG_PASSWORD}
- PG_HOST=${PG_HOST}
- PG_PORT=${PG_PORT}
- PG_DATABASE=${PG_DATABASE}
- API_PORT=${PYTHON_API_PORT}
- CHOKIDAR_USEPOLLING=true
ports:
- '${PYTHON_API_PORT}:${PYTHON_API_PORT}'
command: uvicorn main:app --port ${PYTHON_API_PORT} --host 0.0.0.0 --reload
java-api:
# restart: unless-stopped
build:
dockerfile: Dockerfile
context: './java-api'
# volumes:
# - ./java-api/build:/app
environment:
- PG_USER=${PG_USER}
- PG_PASSWORD=${PG_PASSWORD}
- PG_HOST=${PG_HOST}
- PG_PORT=${PG_PORT}
- PG_DATABASE=${PG_DATABASE}
- API_PORT=${JAVA_API_PORT}
- CHOKIDAR_USEPOLLING=true
- PYTHON_API_PORT=${PYTHON_API_PORT}
ports:
- '${JAVA_API_PORT}:${JAVA_API_PORT}'
# depends_on:
# - java-builder
# command: java -cp "/app/classes/java/main:/app/dependencies/*:/app/resources/main" com.anonymizer.AnonymizerApplication
# java-builder:
# image: gradle:jdk11
# working_dir: /home/gradle/project
# restart: on-failure
# volumes:
# - ./java-api/build:/home/gradle/project/build
# - ./java-api/src:/home/gradle/project/src
# - ./java-api/build.gradle:/home/gradle/project/build.gradle
# environment:
# - CHOKIDAR_USEPOLLING=true
# command: gradle build -t -x test -x testClasses
react-client:
restart: unless-stopped
stdin_open: true
build:
dockerfile: Dockerfile.dev
context: ./react-client
volumes:
- /app/node_modules
- ./react-client:/app
environment:
- CHOKIDAR_USEPOLLING=true
ports:
- '${REACT_CLIENT_PORT}:${REACT_CLIENT_PORT}'