-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (40 loc) · 862 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (40 loc) · 862 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
services:
app:
build:
context: .
dockerfile: dockerfile
network: host
args:
UID: 1000
GID: 1000
container_name: ${CONTAINER_NAME}
ports:
- "${CONTAINER_PORT}:80"
volumes:
- .:/var/www/html
depends_on:
- db
dns:
- 8.8.8.8
- 1.1.1.1
pgadmin:
image: dpage/pgadmin4
restart: always
ports:
- "${DB_PGADMIN_EXTERNAL_PORT}:80"
environment:
PGADMIN_DEFAULT_EMAIL: ${DB_PGADMIN_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${DB_PGADMIN_PASSWORD}
POSTGRES_DB: ${DB_DATABASE}
depends_on:
- db
db:
image: postgres:15-alpine
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata: