-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (27 loc) · 830 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
30 lines (27 loc) · 830 Bytes
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
services:
###> doctrine/doctrine-bundle ###
database:
image: postgres:16-alpine
environment:
POSTGRES_DB: tddrightway
POSTGRES_USER: user
POSTGRES_PASSWORD: password
volumes:
- db-data:/var/lib/postgresql/data:rw
ports:
- "5432:5432"
# Alternative MariaDB configuration
# image: 'mariadb:10.5'
# environment:
# MYSQL_ROOT_PASSWORD: 'password'
# ports:
# - '6000:3306'
# volumes:
# - db-data:/var/lib/mysql
# 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 ###