-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (51 loc) · 1.14 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
version: '3.9'
networks:
backend-network:
driver: bridge
postgres-network:
driver: bridge
services:
postgres:
container_name: notifications-microservice-postgres
image: postgres
networks:
- postgres-network
ports:
- 5432:5432
environment:
POSTGRES_USER: docker
POSTGRES_PASSWORD: docker
POSTGRES_DB: docker
# PGDATA: /data/postgres
# volumes:
# - './docker/data/postgres:/data/postgres'
cache:
container_name: notifications-microservice-redis
image: redis
ports:
- 6379:6379
#volumes:
# - ./docker/data/redis:/data
app:
container_name: notifications-microservice-app
build:
context: .
dockerfile: Dockerfile
networks:
- backend-network
- postgres-network
ports:
- '3333:3333'
depends_on:
- postgres
- cache
environment:
DATABASE_URL: postgres://docker:docker@postgres:5432/docker
JWT_PRIVATE_KEY: fake-private-key-string
JWT_PUBLIC_KEY: fake-public-key-string
REDIS_HOST: cache
REDIS_PORT: 6379
REDIS_DB: 0
PORT: 3333
volumes:
- .:/app