-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (71 loc) · 1.56 KB
/
docker-compose.yml
File metadata and controls
76 lines (71 loc) · 1.56 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: "3.9"
services:
postgres:
container_name: postgres
image: postgres:16.2-alpine
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: livelearninglab
volumes:
- postgres:/var/lib/postgresql/data:rw
networks:
- network
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
restart: always
ports:
- 5171:80
environment:
PGADMIN_DEFAULT_EMAIL: "postgres@postgres.com"
PGADMIN_DEFAULT_PASSWORD: "postgres"
# For development so you dont have to log in to panel
PGADMIN_CONFIG_SERVER_MODE: "False"
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: "False"
# Disable guicorn logs
GUNICORN_ACCESS_LOGFILE: '/dev/null'
depends_on:
- postgres
volumes:
- pgadmin:/var/lib/pgadmin
networks:
- network
backend:
container_name: backend
restart: always
build:
context: ./backend
dockerfile: Dockerfile
env_file:
- ./backend/.env
depends_on:
- postgres
ports:
- 5172:5172
networks:
- network
volumes:
- ./backend/src:/app/src
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- ./frontend/src:/app/src:ro
- /app/node_modules
environment:
NODE_ENV: development
VITE_APP_BACKEND_ADDRESS: http://localhost:5172/
ports:
- 5173:5173
networks:
- network
volumes:
postgres:
pgadmin:
networks:
network:
driver: bridge