-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
53 lines (51 loc) · 1 KB
/
compose.yaml
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
services:
app:
container_name: app-cerveparV2
build:
context: .
dockerfile: app.dockerfile
working_dir: /var/www
volumes:
- ./:/var/www
depends_on:
- database
- web
networks:
- shared-net
env_file:
- .env
environment:
- DB_HOST=postgres-cerveparV2
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_DATABASE=cerveparV2
web:
container_name: nginx-cerveparV2
build:
context: .
dockerfile: web.dockerfile
working_dir: /var/www
volumes:
- ./:/var/www
ports:
- 8000:80
networks:
- shared-net
database:
container_name: postgres-cerveparV2
image: postgres:alpine
volumes:
- postgres_volumen:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: cerveparV2
ports:
- 5555:5432
networks:
- shared-net
volumes:
postgres_volumen:
networks:
shared-net:
driver: bridge