forked from earthowned/planetfarms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-production.yml
46 lines (46 loc) · 889 Bytes
/
docker-production.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
version: "3"
services:
db:
image: postgres:11-alpine
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: pass
POSTGRES_DB: planetfarms
ports:
- 5432:5432
volumes:
- ./pgdata:/var/lib/postgresql/data
adminer:
image: adminer
ports:
- 8081:8080
nginx:
image: nginx:alpine
ports:
- 8080:80
volumes:
- ./api/files:/usr/share/nginx/html
proxy:
image: nginx:alpine
ports:
- 8090:80
volumes:
- ./nginx.default.conf:/etc/nginx/conf.d/default.conf
frontend:
#build: .
image: earthowned:farms
ports:
- 8091:80
volumes:
- ./frontend.default.conf:/etc/nginx/conf.d/default.conf
api:
#build: ./api
image: earthowned:api
ports:
- 8092:80
depends_on:
- db
environment:
- port=80
volumes:
- ./api/files:/files