-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
44 lines (42 loc) · 994 Bytes
/
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
version: '3.7'
services:
postgres:
image: postgres:15.2
restart: always
environment:
- POSTGRES_USER=plexo
- POSTGRES_PASSWORD=example
logging:
options:
max-size: 10m
max-file: "3"
ports:
- '5438:5432'
volumes:
- ./postgres-data:/var/lib/postgresql/data
- ./sql/create_tables.sql:/docker-entrypoint-initdb.d/create_tables.sql
# copy the sql script to fill tables
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- "5050:80"
plexo:
build:
context: .
dockerfile: Dockerfile
restart: always
environment:
DATABASE_URL: postgres://plexo:example@postgres:5432/plexo
env_file:
- .env
volumes:
- ./data:/data
depends_on:
- postgres
ports:
- 8080:8080