-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (66 loc) · 1.46 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
version: '3'
services:
ba-backend:
build:
context: .
dockerfile: ba_website/Dockerfile
container_name: ba-backend
working_dir: /backend
environment:
- DBDATABASE=ba-db
- DBHOST=ba-postgres
- DBPASSWORD=1234
- DBPORT=5432
- DBUSER=ba-user
- SECRET=SECRETKEY
command: ./run_docker.sh
expose:
- 1337
depends_on:
- ba-postgres
ba-nginx:
build:
context: .
dockerfile: nginx/docker/Dockerfile
container_name: ba-nginx
volumes:
- static_volume:/home/app/web/staticfiles
ports:
- 0.0.0.0:1337:1337
depends_on:
- ba-backend
ba-postgres:
image: postgres:11
container_name: ba-postgres
environment:
- POSTGRES_USER=ba-user
- POSTGRES_PASSWORD=1234
- POSTGRES_DB=ba-db
volumes:
- ba-postgres-volume:/var/lib/postgresql/data
ports:
- 127.0.0.1:5432:5432
#ba-frontend:
# build:
# context: .
# dockerfile: ba_frontend/Dockerfile
# container_name: ba-frontend
# environment:
# - VUE_APP_BACKEND=ba-nginx:1337/api
# command: ./run_debug.sh
# ports:
# - 0.0.0.0:8080:8080
adminer:
image: adminer:latest
environment:
ADMINER_DEFAULT_DB_DRIVER: postgres
ADMINER_DEFAULT_DB_HOST: ba-postgres
ADMINER_DEFAULT_DB_NAME: ba-db
ADMINER_DESIGN: nette
ports:
- 8000:8080
depends_on:
- ba-postgres
volumes:
ba-postgres-volume:
static_volume: