-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (58 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
version: "3"
volumes:
pialab_back_db:
pialab_back_var:
services:
back:
build: back
container_name: pialab_back
depends_on:
- nginx-proxy
volumes:
- ./back/src:/var/www/pialab-back/
- pialab_back_db:/var/lib/postgresql
ports:
- '8000:80'
- '5432:5432'
environment:
VIRTUAL_HOST: back.pialab.localhost # Managed by nginx-proxy
VIRTUAL_PORT: 80
front:
build:
context: front
target: dev
container_name: pialab_front
depends_on:
- back
- nginx-proxy
volumes:
- ./front/src:/var/www/pialab-front/
ports:
- '8080:4200'
environment:
VIRTUAL_HOST: front.pialab.localhost # Managed by nginx-proxy
VIRTUAL_PORT: 4200
adminer:
image: adminer:4.7.7
container_name: pialab_adminer
restart: 'no'
depends_on:
- back
- nginx-proxy
ports:
- '9985:8080'
logging:
driver: 'none' # Disable logging of this container
environment:
VIRTUAL_HOST: adminer.pialab.localhost # Managed by nginx-proxy
VIRTUAL_PORT: 8080
nginx-proxy: # Development only : allow to use VIRTUAL_HOST environment variables
image: jwilder/nginx-proxy
container_name: pialab_nginx_proxy
volumes:
- "/var/run/docker.sock:/tmp/docker.sock:ro"
# - "./docker/proxy-nginx.conf:/etc/nginx/cond.d/proxy.conf"
ports:
- "80:80"
logging:
driver: 'none' # Disable logging of this container