-
Notifications
You must be signed in to change notification settings - Fork 107
/
docker-compose.local.yml
53 lines (53 loc) · 1.46 KB
/
docker-compose.local.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
version: '3'
services:
address-book-db-local:
container_name: address_book_db
image: postgres:13
restart: always
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=postgres
volumes:
- pgdata:/var/lib/postgresql/data
address-book-redis-local:
container_name: address_book_redis
image: redis:7
restart: always
ports:
- 6379:6379
environment:
- REDIS_PASSWORD=redispw
address-book-api-local:
container_name: address_book_be
build:
context: .
dockerfile: Dockerfile.local
restart: always
ports:
- "8000:8000"
environment:
- APP_HOST=0.0.0.0
- APP_PORT=8000
- DATABASE_URL=postgres://postgres:postgres@address-book-db-local/postgres
- REDIS_URL=redis://default:redispw@address-book-redis-local
- MAX_AGE=604800
- SESSION_SECRET_KEY=yPN6UqDPhXHgwdu8uWf894CA6MehJcBF0IoeK8EFp7NyGmaPerZDFx40k6Q6FJB4
depends_on:
- address-book-db-local
- address-book-redis-local
address-book-client-local:
container_name: address_book_client
image: yew-address-book-client
restart: always
ports:
- "3000:3000"
environment:
- NODE_ENV=local
- SESSION_SECRET_KEY=FiMmpTlRjkxpISA09DvzBXTQDwcB9FsDkAcpOsE00HCAgfWabAMliDhKJWQKRV2o
depends_on:
- address-book-api-local
- address-book-db-local
- address-book-redis-local
volumes:
pgdata: