-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·47 lines (42 loc) · 865 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·47 lines (42 loc) · 865 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
41
42
43
44
45
46
47
version: '3'
services:
nginx:
container_name: booking-nginx
image: nginx:1.15-alpine
restart: unless-stopped
ports:
- "8080:80"
volumes:
- .:/app:delegated
- ./etc/infrastructure/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- fpm
postgres:
container_name: booking-postgres
image: postgres:14
restart: always
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: booking
ports:
- "5433:5432"
volumes:
- booking_db:/var/lib/postgresql/data
fpm:
container_name: booking
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "2222:22"
- "9090:9000"
volumes:
- .:/app
env_file:
- .env
depends_on:
- postgres
volumes:
booking_db: