-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
76 lines (74 loc) · 1.42 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Production Environment
version: "3.9"
services:
postgres:
image: 'postgres'
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
ports:
- "5432:5432"
networks:
- webernet
volumes:
- weberdb:/var/lib/postgresql/data
backend:
build:
context: backend
dockerfile: Dockerfile
# command: refresh
environment:
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=${DB_NAME}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- APP_HOST=${APP_HOST}
- APP_PORT=${APP_PORT}
depends_on:
- postgres
ports:
- "8080:8080"
links:
- postgres
networks:
- webernet
volumes:
- .env:/app/.env
frontend:
build:
context: frontend
dockerfile: Dockerfile
environment:
- BACKEND_URL=${BACKEND_URL}
- PORT=${WEB_PORT}
- HOSTNAME=${WEB_HOSTNAME}
- HOST=${WEB_HOST}
depends_on:
- backend
links:
- backend
networks:
- webernet
ports:
- "3000:3000"
proxy:
image: 'nginx'
ports:
- "8000:80"
depends_on:
- backend
- frontend
links:
- backend
- frontend
networks:
- webernet
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
volumes:
weberdb:
networks:
webernet:
driver: bridge