-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
33 lines (31 loc) · 1005 Bytes
/
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
# The docker-compose.yml file is __only__ used for local development.
# This means that changes to this file will not affect cloud deployments in any way.
# Read more at https://docs.divio.com/reference/docker-docker-compose/
services:
web:
build: .
ports:
- '8000:80'
volumes:
- '.:/app:rw'
- './data:/data:rw'
- 'node_modules:/app/node_modules'
# We are using the .env file to store environment variables locally.
env_file: '.env'
links:
- 'database_default'
# The following command is used to start the local development server.
# Removing this line will mimic the deployment behaviour on Divio Cloud.
command: 'npm run develop'
database_default:
image: postgres:15.7-alpine
environment:
POSTGRES_DB: 'db'
POSTGRES_HOST_AUTH_METHOD: 'trust'
SERVICE_MANAGER: 'fsm-postgres'
volumes:
- '.:/app:rw'
- 'database-default:/var/lib/postgresql/data/'
volumes:
node_modules:
database-default: