-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-worker.yml
51 lines (45 loc) · 1.1 KB
/
docker-compose-worker.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
version: '3.4'
networks:
polkanalysis_network:
driver: bridge
volumes:
polkanalysis_data:
driver: local
services:
polkanalysis.worker:
container_name: Polkanalysis_Worker
image: ${DOCKER_REGISTRY-}polkanalysis.worker
build:
context: .
dockerfile: worker.dockerfile
environment:
ASPNETCORE_ENVIRONMENT: Development
depends_on:
- db
networks:
- polkanalysis_network
db:
container_name: Polkanalysis_Database
image: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: test
expose:
- "5433" # Publishes 5433 to other containers but NOT to host machine
ports:
- "5433:5433"
command: -p 5433
volumes:
- polkanalysis_data:/var/lib/postgresql/data
networks:
- polkanalysis_network
cache:
container_name: Polkanalysis_Redis
image: redis:latest
restart: always
ports:
- '6379:6379'
# command: redis-server --save 20 1 --loglevel warning --requirepass eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
volumes:
- polkanalysis_data:/data