-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 957 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (43 loc) · 957 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
version: '3.8'
services:
app:
image: global-connect-app
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- PORT=3000
- DB_HOST=db
- DB_PORT=5432
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=${DB_NAME}
- STELLAR_NETWORK=testnet
- STELLAR_SECRET_KEY=${STELLAR_SECRET_KEY}
- STELLAR_PUBLIC_KEY=${STELLAR_PUBLIC_KEY}
- JWT_SECRET=${JWT_SECRET}
- JWT_EXPIRATION=1h
depends_on:
- db
volumes:
- .:/usr/src/app
networks:
- global-connect-network
db:
image: postgres:13
restart: always
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
volumes:
- db_data:/var/lib/postgresql/data
networks:
- global-connect-network
networks:
global-connect-network:
driver: bridge
volumes:
db_data: