-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (53 loc) · 1.17 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
version: '3'
services:
stateless-auth-api:
container_name: stateless-auth-api
build:
context: "./stateless-auth-api"
dockerfile: Dockerfile
image: stateless-auth
environment:
PORT: 8080
DB_HOST: stateless-auth-db
DB_PORT: 5432
DB_NAME: auth-db
DB_USER: postgres
DB_PASSWORD: postgres
JWT_SECRET_KEY: gJCGMWNVlEQdk4L6FYQf0ndTyme7y0jR
networks:
- stateless-auth
ports:
- "8080:8080"
volumes:
- ./:/app
depends_on:
- stateless-auth-db
stateless-auth-db:
container_name: stateless-auth-db
image: postgres:latest
environment:
POSTGRES_DB: auth-db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
networks:
- stateless-auth
ports:
- "5432:5432"
stateless-any-api:
container_name: stateless-any-api
build:
context: "./stateless-any-api"
dockerfile: Dockerfile
image: stateless-any
environment:
PORT: 8081
JWT_SECRET_KEY: gJCGMWNVlEQdk4L6FYQf0ndTyme7y0jR
networks:
- stateless-auth
ports:
- "8081:8081"
volumes:
- ./:/app
networks:
stateless-auth:
driver: bridge