-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (65 loc) · 1.7 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
services:
php:
container_name: chubbyphp-php
hostname: php
build:
dockerfile: ./docker/php/Dockerfile
context: ./
args:
USER_ID: ${USER_ID:-1000}
GROUP_ID: ${GROUP_ID:-1000}
environment:
MONGODB_URI: mongodb://root:6RHL8hKl2XmqKTmxeXOS@mongo:27017/?authSource=admin
POSTGRES_URL: pgsql://root:82fJ1z90aeRFAAhHTM1s@postgres:5432?charset=utf8
SSH_AUTH_SOCK: /ssh-agent
volumes:
- ${PWD}/..:/app
- ~/.bash_docker:/home/php/.bash_docker
- ~/.bash_history:/home/php/.bash_history
- ~/.gitconfig:/home/php/.gitconfig
- ~/.gitignore:/home/php/.gitignore
- ~/.zsh_docker:/home/php/.zsh_docker
- ~/.zsh_history:/home/php/.zsh_history
- $SSH_AUTH_SOCK:/ssh-agent
depends_on:
- mongo
- postgres
extra_hosts:
- "host.docker.internal:host-gateway"
mongo:
container_name: chubbyphp-mongo
hostname: mongo
image: mongo:7.0
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: 6RHL8hKl2XmqKTmxeXOS
ports:
- '27017:27017'
volumes:
- mongo:/data/db
postgres:
container_name: chubbyphp-postgres
hostname: postgres
image: postgres:17
command: -c log_statement=all -c log_error_verbosity=VERBOSE
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: 82fJ1z90aeRFAAhHTM1s
ports:
- '5432:5432'
volumes:
- postgres:/var/lib/postgresql/data
nginx:
container_name: chubbyphp-nginx
hostname: nginx
image: nginx
ports:
- '443:443'
volumes:
- ${PWD}/..:/app:ro
- ./docker/nginx:/etc/nginx/templates
depends_on:
- php
volumes:
mongo:
postgres: