-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1.31 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
48
49
50
51
52
53
54
55
56
name: e2b4free
services:
db:
image: postgres:16.1
restart: unless-stopped
volumes:
- ./data/dbdata:/var/lib/postgresql/data
- ./scripts/install-extensions.sql:/docker-entrypoint-initdb.d/install-extensions.sql
environment:
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- POSTGRES_DB=$POSTGRES_DB
backend:
build: ./backend
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./backend/backend:/e2b4free
- ./libraries:/libraries
env_file: .env
depends_on:
- db
restart: unless-stopped
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin4_container
restart: unless-stopped
ports:
- "127.0.0.1:8888:80"
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.admin
PGADMIN_DEFAULT_PASSWORD: L0t7ETNLWBEIcoH8
volumes:
- ./data/pgadmin-data:/var/lib/pgadmin
frontend_npm_builder:
build: ./frontend/
volumes:
- frontend_static:/app/dist
caddy:
image: caddy:2.7-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- frontend_static:/static
- ./config/Caddyfile:/etc/caddy/Caddyfile
- ./data/caddy_data:/data
- ./data/caddy_config:/config
volumes:
frontend_static: