-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (63 loc) · 1.39 KB
/
docker-compose.yml
File metadata and controls
68 lines (63 loc) · 1.39 KB
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
version: '3'
services:
stateful-auth-api:
container_name: stateful-auth-api
build:
context: "./stateful-auth-api"
dockerfile: Dockerfile
image: stateful-auth
environment:
PORT: 8082
DB_HOST: stateful-auth-db
DB_PORT: 5432
DB_NAME: auth-db
DB_USER: postgres
DB_PASSWORD: postgres
JWT_SECRET_KEY: DiKEvOdaoLxYhfuguEnb9mxnLIdZdPfQ
REDIS_HOST: stateful-redis
REDIS_PORT: 6379
networks:
- stateful-auth
ports:
- "8082:8082"
volumes:
- ./:/app
depends_on:
- stateful-auth-db
- stateful-redis
stateful-auth-db:
container_name: stateful-auth-db
image: postgres:latest
environment:
POSTGRES_DB: auth-db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
networks:
- stateful-auth
ports:
- "5433:5432"
stateful-any-api:
container_name: stateful-any-api
build:
context: "./stateful-any-api"
dockerfile: Dockerfile
image: stateful-any
environment:
PORT: 8083
STATEFUL_AUTH_BASE_URL: "http://stateful-auth-api:8082"
networks:
- stateful-auth
ports:
- "8083:8083"
volumes:
- ./:/app
stateful-redis:
container_name: stateful-redis
image: redis:latest
networks:
- stateful-auth
ports:
- "6379:6379"
networks:
stateful-auth:
driver: bridge