-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 1.02 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
version: "2.1"
services:
postDB:
image: 'postgres:latest'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=${postPass}
volumes:
- ./server/db/database.sql:/docker-entrypoint-initdb.d/create_tables.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
frontend:
build: ./frontend
depends_on:
- backend
links:
- backend
backend:
build: ./server
links:
- postDB
- redisStore
depends_on:
redisStore:
condition: service_started
postDB:
condition: service_healthy
redisStore:
image: 'bitnami/redis:latest'
environment:
- REDIS_PASSWORD=${redisStorePass}
proxy:
image: nginx
volumes:
- type: bind
source: ./proxy/nginx.conf
target: /etc/nginx/conf.d/default.conf
read_only: true
ports:
- 8000:8000
- 8001:8001
- 9808:9808
depends_on:
- frontend
- backend