-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
85 lines (81 loc) · 1.58 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
version: '3'
services:
postgres:
image: postgres:latest
ports:
- "5432:5432"
networks:
- stratos_net
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${PG_PASSWORD}
POSTGRES_DB: lucid
swagger-ui:
image: swaggerapi/swagger-ui
ports:
- "4444:8080"
networks:
- stratos_net
volumes:
- ./swagger/api.json:/foo/api.json
environment:
- SWAGGER_JSON=/foo/api.json
server:
build:
context: backend/.
dockerfile: Dockerfile
networks:
- stratos_net
ports:
- "8080:3333"
- "3333:3333"
depends_on:
postgres:
condition: service_healthy
links:
- "postgres:db"
environment:
DATABASE_CONNECTION: pg
DB_HOST: db
DB_PORT: 5432
DB_USER: postgres
DB_PASSWORD: ${PG_PASSWORD}
DB_NAME: lucid
client_web:
build:
context: web-app/.
dockerfile: Dockerfile
ports:
- "8081:3000"
networks:
- stratos_net
volumes:
- app-volumes:/app
links:
- "postgres:db"
client_mobile:
depends_on:
- client_web
build:
context: mobile/.
dockerfile: Dockerfile
volumes:
- app-volumes:/usr/mobile
backend_scheduler:
depends_on:
postgres:
condition: service_healthy
build:
context: backend/.
dockerfile: scheduler.Dockerfile
networks:
- stratos_net
links:
- "postgres:db"
volumes:
app-volumes:
networks:
stratos_net:
name: stratos_network