-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (39 loc) · 863 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (39 loc) · 863 Bytes
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
services:
api:
build:
context: .
dockerfile: Dockerfile-api
volumes:
- ./api:/var/www/app:rw
environment:
DATABASE_PASSWORD: $DATABASE_PASSWORD
VIRTUAL_HOST: api.bvm.localhost
working_dir: /var/www/app
ui:
build:
context: .
dockerfile: Dockerfile-ui
volumes:
- ./ui:/app:rw
environment:
VIRTUAL_HOST: app.bvm.localhost
VIRTUAL_PORT: 3000
db:
image: mysql:8
volumes:
- db-data:/var/lib/mysql:rw
- ./docker/db:/docker-entrypoint-initdb.d:ro
environment:
MYSQL_ROOT_PASSWORD: $DATABASE_PASSWORD
db-ui:
image: adminer
environment:
VIRTUAL_HOST: database.bvm.localhost
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
volumes:
db-data: {}