* renamed volume name db_data to twenty_db_data * named postgres container_name: twenty_postgres make provision-postgres does: * checking if docker is running * stop the container postgres twenty_postgres * prune the volume twenty_db_data * rebuild the image every time, use --build
This commit is contained in:
@ -24,9 +24,10 @@ services:
|
||||
- ../../docs:/app/docs
|
||||
- twenty_node_modules_docs:/app/docs/node_modules
|
||||
postgres:
|
||||
container_name: twenty_postgres
|
||||
build: ./postgres
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
- twenty_db_data:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_USER=twenty
|
||||
- POSTGRES_PASSWORD=twenty
|
||||
@ -34,7 +35,8 @@ services:
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
db_data:
|
||||
twenty_db_data:
|
||||
name: twenty_db_data
|
||||
twenty_node_modules_front:
|
||||
twenty_node_modules_server:
|
||||
twenty_node_modules_docs:
|
||||
Reference in New Issue
Block a user