-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (79 loc) · 1.75 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
79
version: "3.7"
services:
sf-nginx:
build: ./docker/development/nginx
container_name: sf-nginx
ports:
- "80:80"
volumes:
- ./app/public:/usr/src/app/public:ro
- ./logs/nginx:/var/log/nginx
links:
- sf-php-fpm
sf-php-fpm:
build: ./docker/development/php/7.3/fpm
container_name: sf-php-fpm
volumes:
- ./app:/usr/src/app:rw,cached
- ./logs/symfony:/usr/src/app/var/log
links:
- sf-db
- sf-redis
sf-php-cli:
build: ./docker/development/php/7.3/cli
container_name: sf-php-cli
volumes:
- ./app:/usr/src/app:rw,cached
- ./logs/symfony:/usr/src/app/var/log
- composer:/root/.composer/cache
links:
- sf-db
- sf-redis
ports:
- "9000:9001"
tty: true
sf-node:
image: node:12.7-alpine
container_name: sf-node
volumes:
- ./app:/usr/src/app:rw,cached
- ./logs/symfony:/usr/src/app/var/log
working_dir: /usr/src/app
tty: true
sf-db:
image: postgres:11.2-alpine
container_name: sf-db
volumes:
- db-data:/var/lib/postgresql/data:rw
environment:
POSTGRES_USER: ${POSTGRES_USER:-symfonist}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-secret}
POSTGRES_DB: ${POSTGRES_DB:-blog_db}
ports:
- "54321:5432"
sf-adminer:
image: adminer
container_name: sf-adminer
links:
- sf-db
restart: always
ports:
- "2000:8080"
sf-redis:
image: redis:5-alpine
container_name: sf-redis
ports:
- "6379:6379"
volumes:
- redis:/data
command:
- 'redis-server'
- '--databases 2'
- '--save 900 1'
- '--save 300 10'
- '--save 60 10000'
- '--requirepass secret'
volumes:
db-data:
redis:
composer: