-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yaml
75 lines (68 loc) · 1.64 KB
/
docker-compose.yaml
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
version: '3.2'
services:
mail:
image: bytemark/smtp
restart: always
networks:
- parthenon
database:
image: postgres:13.3-alpine3.14
environment:
- POSTGRES_DB=${PSQGL_DATABASE_NAME}
- POSTGRES_USER=${PSQGL_DATABASE_USER}
- POSTGRES_PASSWORD=${PSQGL_DATABASE_PASSWORD}
ports:
- "5432:5432"
volumes:
- ./docker/database/data:/var/lib/postgresql/data
- ./docker/database/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- parthenon
redis:
image: redis:5-alpine
networks:
- parthenon
ports:
- "6379:6379"
rediscommander:
image: rediscommander/redis-commander:latest
restart: always
environment:
REDIS_HOSTS: redis
REDIS_HOST: redis
REDIS_PORT: redis:6379
REDIS_PASSWORD: ${REDIS_PASSWORD}
HTTP_USER: root
HTTP_PASSWORD: root
ports:
- 8081:8081
networks:
- parthenon
php-fpm:
image: billabear/ubuntu-php-fpm:8.4
depends_on:
- database
environment:
- APP_ENV=${APP_ENV}
- APP_SECRET=${APP_SECRET}
- DATABASE_URL=pgsql://${PSQGL_DATABASE_USER}:${PSQGL_DATABASE_PASSWORD}@database:5432/${PSQGL_DATABASE_NAME}
volumes:
- .:/var/www
networks:
- parthenon
nginx:
image: getparthenon/ubuntu-nginx:21.04
volumes:
- .:/var/www
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/sites/:/etc/nginx/sites-available
- ./docker/nginx/conf.d/:/etc/nginx/conf.d
depends_on:
- php-fpm
ports:
- "80:80"
networks:
- parthenon
networks:
parthenon:
driver: bridge