forked from LelabsTeam/mono-challenge-intention
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1020 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
49
50
51
52
53
54
55
56
version: '3'
services:
php:
build:
context: ./projeto-php
dockerfile: Dockerfile.php
depends_on:
- postgres
environment:
- PHP_SERVER_ADDRESS=php
ports:
- 9000:9000
volumes:
- ./projeto-php/public:/var/www/html/public
networks:
- my-network
node:
build:
context: ./projeto-ts
dockerfile: Dockerfile.node
ports:
- 8002:3000
networks:
- my-network
nginx:
build:
context: ./docker/nginx
dockerfile: Dockerfile
restart: always
ports:
- 8001:80
volumes:
- ./:/var/www
depends_on:
- php
networks:
- my-network
postgres:
image: postgres:15
ports:
- 5432:5432
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=intencao_compra
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
networks:
- my-network
networks:
my-network:
driver: bridge