-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (34 loc) · 812 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (34 loc) · 812 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
version: '3.8'
services:
pgadmin: # (optional)
image: docker.io/dpage/pgadmin4
ports:
- "8000:80"
environment:
- PGADMIN_DEFAULT_EMAIL=test@gmail.com
- PGADMIN_DEFAULT_PASSWORD=password
volumes:
- pgadmin:/var/lib/pgadmin
db:
image: docker.io/postgres:alpine3.18
environment:
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
volumes:
- db:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
api:
build: api/
environment:
- DATABASE_URL=postgresql://username:password@db:5432/fiume;
- DATABASE_USER=username
- DATABASE_PASSWORD=password
app:
build: app/
ports:
- 3000:3000
environment:
- NUXT_PUBLIC_API_ADDRESS=api
volumes:
db:
pgadmin: