forked from microwavenby/shoegaze-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1.34 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
version: "3.7"
services:
postgres:
image: postgres
environment:
POSTGRES_PASSWORD: incredible_local_secret_phrase
POSTGRES_USER: postgres
healthcheck:
test: "pg_isready --username=postgres"
timeout: 10s
retries: 20
init: true
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
remix_dev:
build:
target: dev
context: .
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://postgres:incredible_local_secret_phrase@postgres:5432/postgres?schema=public
init: true
ports:
- "3003:3000"
- "6066:6006"
volumes:
# Mount the app directory for faster local development.
- ./:/srv
# Use a named volume for the node_modules so that the container uses the guest machine's node_modules dir instead of the host machine's node_modules directory, which might be divergent.
- remix_dev_nodemodules:/srv/node_modules
remix_prod:
build:
target: prod
context: .
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://postgres:incredible_local_secret_phrase@postgres:5432/postgres?schema=public
init: true
ports:
- "3010:3000"
volumes:
remix_dev_nodemodules:
postgres_data: