-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (59 loc) · 1.38 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
version: '3.8'
services:
redis_cache:
image: redis:6.2-alpine
restart: always
ports:
- 6379:6379
command: redis-server --save 20 1 --loglevel warning --requirepass eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
# volumes:
# - cache:/data
nginx_webserver:
image: nginx:latest
container_name: nginx_webserver
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- ./nginx/:/etc/nginx/
- ./certs/nginx-selfsigned.crt:/etc/ssl/certs/localhost.crt
- ./certs/nginx-selfsigned.key:/etc/ssl/certs/localhost.key
depends_on:
- gateway
gateway:
build:
context: ./gateway/
depends_on:
- authentication
- business_logic
restart: always
environment:
- REDIS_PASS=eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
authentication:
build:
context: ./auth/
depends_on:
- redis_cache
environment:
- REDIS_PASS=eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
business_logic:
build:
context: ./biz/
depends_on:
- redis_cache
- postgres_db
restart: always
postgres_db:
image: postgres:14.1-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
volumes:
- ./postgresql.conf:/var/lib/postgresql/data/postgresql.conf
- db:/var/lib/postgresql/data
volumes:
db:
cache: