-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-full.yml
94 lines (93 loc) · 2.14 KB
/
docker-compose-full.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
version: '3'
services:
eureka:
image: anapsix/alpine-java:8_jdk_unlimited
ports:
- '8761:8761'
working_dir: /app
volumes:
- ./eureka-server:/app
command: './gradlew bootRun'
environment:
- GRADLE_USER_HOME=cache
- SPRING_PROFILES_ACTIVE=dev
api-gateway:
image: anapsix/alpine-java:8_jdk_unlimited
ports:
- '8080:8080'
working_dir: /app
volumes:
- ./api-gateway:/app
depends_on:
- eureka
command: './gradlew bootRun'
environment:
- GRADLE_USER_HOME=cache
- SPRING_PROFILES_ACTIVE=dev
users-api:
image: anapsix/alpine-java:8_jdk_unlimited
ports:
- '8081:8081'
working_dir: /app
volumes:
- ./users-api:/app
depends_on:
- api-gateway
- eureka
- postgresdev
command: './gradlew bootRun'
environment:
- GRADLE_USER_HOME=cache
- SPRING_PROFILES_ACTIVE=dev
feeds-api:
image: anapsix/alpine-java:8_jdk_unlimited
ports:
- '8082:8082'
working_dir: /app
volumes:
- ./feeds-api:/app
depends_on:
- api-gateway
- eureka
- postgresdev
command: './gradlew bootRun'
environment:
- GRADLE_USER_HOME=cache
- SPRING_PROFILES_ACTIVE=dev
api-jobs-api:
image: anapsix/alpine-java:8_jdk_unlimited
ports:
- '8083:8083'
working_dir: /app
volumes:
- ./api-jobs-api:/app
depends_on:
- api-gateway
- eureka
- postgresdev
command: './gradlew bootRun'
environment:
- GRADLE_USER_HOME=cache
- SPRING_PROFILES_ACTIVE=dev
ui:
image: johnpapa/angular-cli
ports:
- "4200:4200"
working_dir: /user-interface
volumes:
- ./user-interface:/user-interface
command: "npm run docker"
postgresdev:
image: postgres
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=postgres
- POSTGRES_DB=pgdev
flyway:
image: jimmyoak/flyway:4.0.3
command: "wait-for-it --timeout=30 --strict postgresdev:5432 -- flyway migrate"
volumes:
- './flyway/conf:/flyway/conf'
- './flyway/sql:/flyway/sql'