-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (50 loc) · 1.09 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
# Set the version of docker compose to use
version: '3.9'
# The containers that compose the project
services:
db:
image: postgres:latest
profiles: ["prod", "kubernetes"]
container_name: wallet-db
restart: unless-stopped
ports:
- "6000:5432"
env_file:
- .env
environment:
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- POSTGRES_DB=$POSTGRES_DB
volumes:
- postgres:/var/lib/postgresql/data
server:
image: wallet-api
container_name: wallet-api
profiles: ["prod"]
build:
context: .
dockerfile: Dockerfile
ports:
- "3200:3200"
env_file:
- .env
environment:
- PORT=$PORT
- JWT_SECRET=$JWT_SECRET
- DATABASE_URL=$DATABASE_URL
depends_on:
- db
restart: always
db-test:
image: postgres:latest
profiles: ["test"]
restart: always
container_name: integration-tests-prisma
ports:
- "5433:5432"
environment:
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
POSTGRES_DB: tests
volumes:
postgres: