-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 1.21 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (42 loc) · 1.21 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
version: "3.8"
services:
lucky:
build:
context: .
dockerfile: docker/development.dockerfile
environment:
DATABASE_URL: postgres://lucky:password@postgres:5432/lucky
DEV_HOST: "0.0.0.0"
volumes:
- .:/app
- node_modules:/app/node_modules
- shards_lib:/app/lib
- app_bin:/app/bin
- build_cache:/root/.cache
depends_on:
- postgres
ports:
- 3000:3000 # This is the Lucky Server port
- 3001:3001 # This is the Lucky watcher reload port
entrypoint: ["docker/dev_entrypoint.sh"]
postgres:
image: postgres:14-alpine
environment:
POSTGRES_USER: lucky
POSTGRES_PASSWORD: password
POSTGRES_DB: lucky
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
# The postgres database container is exposed on the host at port 6543 to
# allow connecting directly to it with postgres clients. The port differs
# from the postgres default to avoid conflict with existing postgres
# servers. Connect to a running postgres container with:
# postgres://lucky:password@localhost:6543/lucky
- 6543:5432
volumes:
postgres_data:
node_modules:
shards_lib:
app_bin:
build_cache: