-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (65 loc) · 1.31 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
62
63
64
65
66
67
68
69
70
71
72
version: '3'
services:
db:
container_name: "deployable-db"
image: postgres:16.2-alpine
environment:
- POSTGRES_USER=deploy_user
- POSTGRES_PASSWORD=deploy_password
- POSTGRES_DB=deploy_db
volumes:
- deployable-db-data:/var/libs/postgresql/data/
ports:
- "5432:5432"
redis:
image: redis:7.2.4-alpine
ports:
- "6379:6379"
# expose:
# - "6379"
nginx:
restart: always
build:
context: ./nginx
dockerfile: Dockerfile.dev
ports:
- "3050:80"
depends_on:
- client
- api
api:
build:
context: ./server
dockerfile: Dockerfile.dev
volumes:
- /app/node_modules
- ./server:/app
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- PGUSER=deploy_user
- PGHOST=db
- PGPORT=5432
- PGDATABASE=deploy_db
- PGPASSWORD=deploy_password
client:
build:
context: ./client
dockerfile: Dockerfile.dev
volumes:
- /app/node_modules
- ./client:/app
environment:
- WDS_SOCKET_PORT=0
worker:
build:
context: ./worker
dockerfile: Dockerfile.dev
volumes:
- /app/node_modules
- ./worker:/app
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
volumes:
deployable-db: {}