-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
47 lines (44 loc) · 1.02 KB
/
docker-compose.yml
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
47
version: "3.8"
services:
pescarte:
image: ghcr.io/peapescarte/pescarte-plataforma:dev
command: ["mix", "dev"]
container_name: plataforma_pescarte
ports:
- 4000:4000
depends_on:
- database
- pgadmin
env_file:
- .env-sample
volumes:
- .:/src
environment:
MIX_ENV: dev
stdin_open: true
tty: true
database:
image: postgres:14.6
container_name: plataforma_pescarte_database
environment:
- POSTGRES_USER=peapescarte
- POSTGRES_PASSWORD=peapescarte
ports:
- 5432:5432
volumes:
- .postgres:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U peapescarte -d peapescarte" ]
interval: 5s
timeout: 2s
retries: 1
pgadmin:
image: dpage/pgadmin4
container_name: plataforma_pescarte_pgadmin
environment:
- PGADMIN_DEFAULT_PASSWORD=peapescarte
ports:
- 8888:80
volumes:
- .postgres:/var/lib/pgadmin