forked from otter-sec/solana-verified-programs-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (59 loc) · 1.7 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
version: '3'
services:
db:
image: postgres:15
platform: linux/amd64
env_file: .env
restart: always
ports:
- "127.0.0.1:5432:5432"
volumes:
- /pgdata:/var/lib/postgresql/data
- ./api/migrations/2023-07-04-082332_init/up.sql:/docker-entrypoint-initdb.d/initdb1.sql
- ./api/migrations/2024-01-11-080939_update/up.sql:/docker-entrypoint-initdb.d/initdb2.sql
- ./api/migrations/2024-10-10-061245_create_logs_table/up.sql:/docker-entrypoint-initdb.d/initdb3.sql
- ./api/migrations/2024-11-22-184632_track_signer_upload/up.sql:/docker-entrypoint-initdb.d/initdb4.sql
# - ./crawler/migrations/2024-03-11-035137_mainnet_programs/up.sql:/docker-entrypoint-initdb.d/initdb4.sql
redis:
image: redis
env_file: .env
restart: always
container_name: redisserver
ports:
- "127.0.0.1:6379:6379"
volumes:
- "/redisdata/:/data"
- "./redis.conf:/conf/redis.conf"
command: sh -c 'redis-server /conf/redis.conf --requirepass $${REDIS_PASSWORD}'
api:
build:
context: .
dockerfile: ./api/Dockerfile
env_file: .env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /tmp:/tmp
- /logs:/logs
depends_on:
- db
- redis
nginx:
image: nginx:latest
ports:
- "80:80"
- "443:443"
depends_on:
- api
links:
- api
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./nginx/ssl-certs/certificate.crt:/etc/nginx/ssl-certs/certificate.cert
- ./nginx/ssl-certs/key.pem:/etc/nginx/ssl-certs/key.pem
# crawler:
# build:
# context: .
# dockerfile: ./crawler/Dockerfile
# env_file: .env
# depends_on:
# - db