-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (46 loc) · 1011 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (46 loc) · 1011 Bytes
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
version: '3.8'
services:
postgres:
image: postgres:15-alpine
container_name: stellar-pay-postgres
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: stellar_pay
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- stellar-pay-network
redis:
image: redis:7-alpine
container_name: stellar-pay-redis
ports:
- '6379:6379'
networks:
- stellar-pay-network
api:
build:
context: .
dockerfile: apps/api/Dockerfile
container_name: stellar-pay-api
ports:
- '3000:3000'
env_file:
- .env
environment:
- DATABASE_URL=postgresql://user:password@postgres:5432/stellar_pay
- REDIS_URL=redis://redis:6379
- REDIS_HOST=redis
- REDIS_PORT=6379
depends_on:
- postgres
- redis
networks:
- stellar-pay-network
volumes:
postgres_data:
networks:
stellar-pay-network:
driver: bridge