forked from CodeForPoznan/pah-fm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (43 loc) · 966 Bytes
/
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
version: "3"
services:
frontend:
image: codeforpoznan/pah-fm-frontend
# build: frontend
command: bash docker-entrypoint.sh
# command: tail -f /dev/null
volumes:
- ./frontend:/pah-fm/frontend
- asset-volume:/pah-fm/frontend/dist
depends_on:
- webserver
backend:
image: codeforpoznan/pah-fm-backend
# build: backend
command: bash docker-entrypoint.sh
# command: tail -f /dev/null
environment:
PAH-FM_DB_HOST: db
PAH-FM_DB_PASS: pah-fm
SECRET_KEY: pah-fm
DEBUG: 1
links:
- db:db
volumes:
- ./backend:/pah-fm/backend
db:
image: postgres:9.5
environment:
POSTGRES_DB: pah-fm
POSTGRES_USER: pah-fm
POSTGRES_PASSWORD: pah-fm
webserver:
image: nginx
volumes:
- ./pah-fm.conf:/etc/nginx/nginx.conf
- asset-volume:/var/www/:ro
ports:
- 8080:80
depends_on:
- backend
volumes:
asset-volume: