-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose-local.yml
More file actions
60 lines (56 loc) · 1.45 KB
/
Copy pathdocker-compose-local.yml
File metadata and controls
60 lines (56 loc) · 1.45 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
services:
livestakesmdb:
image: postgis/postgis:14-3.4-alpine
restart: always
container_name: livestakes-db
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DATABASE: livestakes
ports:
- "5492:5432"
expose:
- "5492"
volumes:
- livestakes-db-data:/var/lib/postgresql/data
networks:
- livestakes-network
# livestakes-app:
# build:
# context: ./
# dockerfile: Dockerfile.dev
# tags:
# - livestakes-app-dev:latest
# volumes:
# # Volume mappings for hot reload
# - ./src:/app:cached
# - ./src/server:/app/server:cached
# # Exclude node_modules to avoid conflicts
# - /app/node_modules
# - /app/server/node_modules
# container_name: livestakes-app-dev
# restart: unless-stopped
# networks:
# - livestakes-network
# ports:
# - "3000:3000" # Frontend Next.js
# - "3334:3334" # Backend server
# expose:
# - 3000
# - 3334
# depends_on:
# - livestakesmdb
# environment:
# - NODE_ENV=development
# - NEXT_TELEMETRY_DISABLED=1
# - HOSTNAME=0.0.0.0
# - HOST=0.0.0.0
# # Add database connection if needed
# - DATABASE_URL=postgresql://root:root@livestakesmdb:5432/livestakes
# extra_hosts:
# - "host.docker.internal:host-gateway"
networks:
livestakes-network:
driver: "bridge"
volumes:
livestakes-db-data: