-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (57 loc) · 1.1 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
version: "3.9"
services:
api:
container_name: api
image: userbase/api
restart: always
env_file: .env
build:
context: .
dockerfile: Dockerfile
target: dev
depends_on:
- db
- cache
ports:
- 4000:4000
working_dir: /app
volumes:
- ./:/app
prisma-studio:
container_name: prisma-studio
image: timothyjmiller/prisma-studio:latest
restart: unless-stopped
depends_on:
- db
environment:
POSTGRES_URL: ${DATABASE_URL}
ports:
- 5555:5555
cache:
container_name: redis-server
image: redis:6-alpine
restart: always
env_file: .env
command: redis-server
ports:
- ${REDIS_PORT}:6379
volumes:
- cache:/data
db:
container_name: postgresql_db
image: postgres:14-alpine
restart: always
env_file: .env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DATABASE}
ports:
- ${DB_PORT}:5432
volumes:
- db:/var/lib/postgresql/data
volumes:
db:
driver: local
cache:
driver: local