-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
73 lines (66 loc) · 1.64 KB
/
compose.dev.yml
File metadata and controls
73 lines (66 loc) · 1.64 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
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.9"
## FOR TEST AND DEVELOPMENT ONLY, DO NOT USE IN PRODUCTION ##
name: hello-dev
services:
backend:
container_name: backend-dev
image: hello-backend-dev
build:
context: ./
dockerfile: docker/Dockerfile.dev
restart: always
depends_on:
postgres:
condition: service_healthy
expose:
- 8080
ports:
- "8080:8080" # database port (host:container)
env_file:
- .env
volumes:
- ./:/app
networks:
- network-backend
postgres:
container_name: postgres-dev
image: postgres:15-alpine
user: postgres
restart: always
volumes:
- postgres-data:/var/lib/postgresql/data # postgres-data: ./postgres-data:
expose:
- 5432
ports:
- "5432:5432" # database port (host:container)
env_file:
- .env
networks:
- network-backend
healthcheck:
test: [ "CMD", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
nodejs-server:
container_name: nodejs-server-dev
build:
context: ./node
dockerfile: ./Dockerfile.dev # Adjust if your Dockerfile has a different name or path
restart: always
env_file:
- .env
ports:
- "3000:3000"
volumes:
- ./node:/usr/src/app # This mounts your host node directory to the container's working directory
- ./arweave-wallet.json:/usr/src/app/arweave-wallet.json:ro
- /usr/src/app/node_modules # Persists node_modules folder to avoid being overridden by the bind mount
networks:
- network-backend
networks:
network-backend:
volumes:
postgres-data:
external: true
name: postgres-data