-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (63 loc) · 1.22 KB
/
docker-compose.yml
File metadata and controls
69 lines (63 loc) · 1.22 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
services:
db:
image: postgres:12
volumes:
- app-db-data:/var/lib/postgresql/data/pgdata
env_file:
- .env
ports:
- "5432:5432"
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
pgadmin:
image: dpage/pgadmin4
depends_on:
- db
env_file:
- .env
# redis:
# image: redis:7-alpine
backend:
depends_on:
- db
env_file:
- .env
environment:
- TIMEOUT="2000"
- SERVER_NAME=${DOMAIN?Variable not set}
- SMTP_HOST=${SMTP_HOST}
build:
context: ./backend
dockerfile: backend.dockerfile
args:
INSTALL_DEV: ${INSTALL_DEV-false}
volumes:
- ./backend/app:/app
- app-shared-data:/tmp
# celery:
# image: celery:latest
# depends_on:
# - db
# - redis
# env_file:
# - .env
# build:
# context: ./backend
# dockerfile: celery.dockerfile
# args:
# INSTALL_DEV: ${INSTALL_DEV-false}
# volumes:
# - app-shared-data:/tmp
frontend:
build:
context: ./frontend
env_file: .env
volumes:
- ./frontend:/app
ports:
- "3000:3000"
depends_on:
- backend
volumes:
app-db-data:
app-shared-data: