-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (75 loc) · 2.19 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
80
81
82
83
84
85
services:
youkok2-db:
image: postgres:14.9
container_name: "youkok2_db_dev"
environment:
POSTGRES_USER: youkok2
POSTGRES_PASSWORD: youkok2
POSTGRES_DB: youkok2
ports:
- '5444:5432'
healthcheck:
test: [ 'CMD-SHELL', 'pg_isready -U postgres' ]
interval: 10s
timeout: 5s
retries: 5
youkok2-cache:
image: "redis:6.0.8-alpine"
container_name: "youkok2_cache_dev"
ports:
- "6379:6379"
youkok2-php:
build:
context: .
dockerfile: docker_php.Dockerfile
args:
- ENV=dev
container_name: "youkok2_php_dev"
ports:
- "9000"
environment:
DEV: 'true'
SSL: 'false'
DIRECTORY_TEMPLATE: '/code/site/templates/'
DIRECTORY_FILES: '/code/files/'
DB_HOST: 'youkok2-db'
DB_USER: 'youkok2'
DB_PASSWORD: 'youkok2'
DB_DATABASE: 'postgres'
REDIS_HOST: 'youkok2-cache'
REDIS_PORT: '6379'
FILE_UPLOAD_MAX_SIZE_IN_BYTES: '10000000'
FILE_UPLOAD_ALLOWED_TYPES: 'pdf,txt,java,py,html,htm,sql'
ADMIN_COOKIE: 'foobar'
# Password is admin for the first input field, and the other fields are empty
ADMIN_PASS1: '$$2y$$10$$HQw8J9SNuqTb6s3YSdto9OWPaNORYkIRypJ8uX5UkKS5Fn32Yzwmu'
ADMIN_PASS2: '$$2y$$10$$wht6JZryFVCUMUi9qmPegOaETImo64e0oTrUMkWExslBVzoNecqC2'
ADMIN_PASS3: '$$2y$$10$$wht6JZryFVCUMUi9qmPegOaETImo64e0oTrUMkWExslBVzoNecqC2'
ADMIN_PASS4: '$$2y$$10$$wht6JZryFVCUMUi9qmPegOaETImo64e0oTrUMkWExslBVzoNecqC2'
ADMIN_PASS5: '$$2y$$10$$wht6JZryFVCUMUi9qmPegOaETImo64e0oTrUMkWExslBVzoNecqC2'
ADMIN_PASS6: '$$2y$$10$$wht6JZryFVCUMUi9qmPegOaETImo64e0oTrUMkWExslBVzoNecqC2'
volumes:
- ./youkok2:/code/site
- ./_docker/files:/code/files
depends_on:
- youkok2-db
- youkok2-cache
links:
- youkok2-db
- youkok2-cache
youkok2-nginx:
build:
context: .
dockerfile: docker_nginx.Dockerfile
args:
- ENV=dev
container_name: "youkok2_nginx_dev"
ports:
- "8091:80"
volumes:
- ./_docker/site.conf:/etc/nginx/conf.d/site.conf
- ./static:/static
depends_on:
- youkok2-php
links:
- youkok2-php