forked from LelabsTeam/mono-challenge-intention
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (68 loc) · 1.34 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
72
73
74
version: '3.9'
networks:
laravel:
services:
nginx:
image: nginx:stable-alpine
restart: unless-stopped
container_name: nginx_lebiscuit
ports:
- "7020:80"
volumes:
- .:/var/www/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- db
- php
networks:
- laravel
db:
image: postgres:14
restart: unless-stopped
container_name: db_lebiscuit
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: "lebiscuit"
POSTGRES_DB: lebiscuit
ports:
- '5444:5432'
networks:
- laravel
php:
build:
context: .
dockerfile: Dockerfile
container_name: php_lebiscuit
restart: unless-stopped
volumes:
- .:/var/www/html
ports:
- "9009:9004"
networks:
- laravel
composer:
image: composer:latest
restart: unless-stopped
container_name: composer_lebiscuit
volumes:
- .:/var/www/html
working_dir: /var/www/html
depends_on:
- db
- php
networks:
- laravel
artisan:
build:
context: .
dockerfile: Dockerfile
container_name: artisan_lebiscuit
volumes:
- .:/var/www/html
working_dir: /var/www/html
entrypoint: ['php', '/var/www/html/artisan']
networks:
- laravel
volumes:
pgdata: