-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (49 loc) · 1018 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
version: '3.8'
volumes:
db:
redis:
services:
nginx:
image: nginx:1.21.6-alpine
restart: always
ports:
- 80:80
volumes:
- .:/srv
- ./.k8s/base/configmap/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
php:
image: davidsolc/php:8.1-fpm-dev
restart: always
volumes:
- .:/srv
- ./.k8s/overlays/dev/configmap/php/conf.d/99-extra.ini:/usr/local/etc/php/conf.d/99-extra.ini
working_dir: /srv
user: 1000:1000
depends_on:
- redis
db:
image: postgres:14.2-alpine
restart: always
volumes:
- db:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
POSTGRES_DB: ${DB_NAME}
redis:
image: redis:6.2.6-alpine
ports:
- 6379:6379
volumes:
- redis:/data
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.24.0.1/16