-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
49 lines (45 loc) · 1.08 KB
/
Copy pathcompose.dev.yml
File metadata and controls
49 lines (45 loc) · 1.08 KB
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
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- ${POSTGRES_PORT}:5432
volumes:
- db_data:/var/lib/postgresql/data
# - init_db.sql:/docker-entrypoint-initdb.d/
adminer:
image: adminer
ports:
- ${ADMINER_PORT}:8080
api:
build:
context: ../api
dockerfile: Dockerfile.dev
ports:
- ${API_PORT}:${API_PORT}
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_HOST: ${POSTGRES_HOST}
JWT_SECRET_KEY: ${JWT_SECRET_KEY}
depends_on:
- postgres
volumes:
- ../api:/api
# front:
# build:
# context: ../client
# dockerfile: Dockerfile.dev
# ports:
# - ${CLIENT_PORT}:${CLIENT_PORT}
# environment:
# NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL}
# volumes:
# - ../client:/app
# - /app/node_modules
volumes:
db_data: