-
Notifications
You must be signed in to change notification settings - Fork 27
/
docker-compose.yml
78 lines (74 loc) · 1.56 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
75
76
77
78
version: '3.9'
# For development purposes only, as easy passwords are hardcoded
services:
#PHP Service
app:
image: irail-v2
build:
context: .
dockerfile: Dockerfile
container_name: app
restart: unless-stopped
tty: true
environment:
APP_NAME: irail-api
APP_ENV: local
APP_KEY:
APP_DEBUG: 'true'
APP_URL: 'http://localhost'
DB_CONNECTION: pgsql
DB_HOST: db
DB_PORT: 5432
DB_DATABASE: 'irail-api'
DB_USERNAME: 'irail-api'
DB_PASSWORD: 'irail-api'
LOG_CHANNEL: 'stdout'
extra_hosts:
- host.docker.internal:host-gateway
working_dir: /var/www
networks:
- app
volumes:
- ./:/var/www
- ./docker/debug:/tmp/xdebug
links:
- db
ports:
- "8088:8080"
#MySQL Service
db:
image: postgres:16.2
restart: unless-stopped
environment:
POSTGRES_DATABASE: irail-api
POSTGRES_USER: irail-api
POSTGRES_PASSWORD: irail-api
POSTGRES_ROOT_PASSWORD: irail-api
TZ: Europe/Stockholm
ports:
- "54320:5432"
networks:
- app
volumes:
- irailv2_sqldata:/var/lib/postgresql/data
web:
image: nginx:latest
container_name: nginx
restart: unless-stopped
ports:
- '8080:80'
volumes:
- ./:/var/www/
- ./deployment/nginx.docker.conf:/etc/nginx/conf.d/default.conf
links:
- app
networks:
- app
#Docker Networks
networks:
app:
driver: bridge
#Docker internal volumes
volumes:
irailv2_sqldata:
name: "irailv2_sqldata"