-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
22 lines (20 loc) · 819 Bytes
/
docker-compose.yml
File metadata and controls
22 lines (20 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
version: '3'
services:
###> doctrine/doctrine-bundle ###
database:
container_name: database
image: postgres:${POSTGRES_VERSION:-14}-alpine
environment:
POSTGRES_DB: ${DB_NAME:-symfony-project}
# You should definitely change the password in production
POSTGRES_PASSWORD: ${DB_PASSWORD:-ChangeMe}
POSTGRES_USER: ${DB_USER:-webapp}
volumes:
- db-data:/var/lib/postgresql/data:rw
# You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!
# - ./docker/db/data:/var/lib/postgresql/data:rw
###< doctrine/doctrine-bundle ###
volumes:
###> doctrine/doctrine-bundle ###
db-data:
###< doctrine/doctrine-bundle ###