-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
56 lines (50 loc) · 1.25 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
version: '3.4'
services:
nginx:
image: nginx:alpine
container_name: railt-nginx
working_dir: /home/railt/railt.org
volumes:
- .:/home/railt/railt.org:rw
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./docker/data/logs/nginx:/var/log/nginx/
ports:
- "${RAILT_HTTP_PUBLIC_PORT:-80}:80"
depends_on:
- php
networks:
- railt_org
php:
build: docker/php
container_name: railt-php
working_dir: /home/railt/railt.org
volumes:
- .:/home/railt/railt.org:rw
- ./docker/php/php.ini:/usr/local/etc/php/conf.d/local.ini
networks:
- railt_org
postgres:
image: postgres:15.3
container_name: railt-postgres
volumes:
- postgres:/var/lib/postgresql/data
- ./docker/data/postgres:/home/db
environment:
- POSTGRES_DB=${DB_DATABASE:-railt}
- POSTGRES_USER=${DB_USERNAME:-user}
- POSTGRES_PASSWORD=${DB_PASSWORD:-password}
ports:
- "${RAILT_DATABASE_PUBLIC_PORT:-5432}:5432"
networks:
- railt_org
node:
build: docker/node
container_name: railt-node
working_dir: /home/railt/railt.org
volumes:
- .:/home/railt/railt.org:rw
networks:
railt_org:
driver: bridge
volumes:
postgres: