-
Notifications
You must be signed in to change notification settings - Fork 866
/
docker-compose.yaml
40 lines (40 loc) · 860 Bytes
/
docker-compose.yaml
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
version: '3.8'
services:
db:
image: postgres:12.7-alpine
restart: always
container_name: faraday_db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=faraday
ports:
- '5432'
volumes:
- "db:/var/lib/postgresql/data:rw"
redis:
image: 'redis:6.2-alpine'
container_name: faraday_redis
ports:
- '6379'
app:
image: index.docker.io/faradaysec/faraday
restart: always
container_name: faraday_app
entrypoint: "/entrypoint.sh"
volumes:
- "$HOME/.faraday:/home/faraday/.faraday:rw"
environment:
- PGSQL_USER=postgres
- PGSQL_PASSWD=postgres
- PGSQL_HOST=db
- PGSQL_DBNAME=faraday
- REDIS_SERVER=redis
depends_on:
- db
- redis
ports:
- "5985:5985"
volumes:
db:
driver: local