-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (52 loc) · 1.26 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
version: '3.3'
services:
postgres:
image: postgres:alpine
container_name: postgres
command: postgres -c 'max_connections=50'
ports:
- 5433:5432
restart: unless-stopped
volumes:
- ./data/dumps/demo.sql:/docker-entrypoint-initdb.d/dump.sql
- ./data/dumps:/dumps
env_file:
- ./data/env/database.dev.env
backend:
build: ./backend/
image: tutor-backend
container_name: backend
depends_on:
- postgres
links:
- postgres
ports:
- 8080:8080
restart: unless-stopped
volumes:
- ./data/images:/images
- ./data/load:/load
- ./data/export:/export
env_file:
- ./data/env/backend.dev.env
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/tutordb
frontend:
build:
context: ./frontend/
dockerfile: Dockerfile
args:
NODE_ENV: dev
image: tutor-frontend
container_name: frontend
depends_on:
- backend
links:
- backend
ports:
- 8081:80
restart: unless-stopped
volumes:
- ./data/nginx.conf:/etc/nginx/nginx.conf
- ./data/error.log:/var/log/nginx/error.log
- ./data/access.log:/var/log/nginx/access.log