-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (25 loc) · 920 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (25 loc) · 920 Bytes
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
version: "3.8"
services:
develop:
build:
context: .
args:
USER: ${USER}
UID: ${UID:-1000}
GID: ${GID:-1000}
image: ${PROJECT_NAME:-dqo}
volumes:
- ./:/home/${USER}/current
- ~/.ssh/id_rsa:/home/${USER}/.ssh/id_rsa
- ~/.ssh/id_rsa.pub:/home/${USER}/.ssh/id_rsa.pub
- type: bind
source: .zsh_history
target: /home/${USER}/.zsh_history
- ~/.gitconfig:/home/${USER}/.gitconfig
- ~/.ssh/known_hosts:/home/${USER}/.ssh/known_hosts
mysql:
image: mysql:5.7
environment: {MYSQL_ROOT_PASSWORD: test, MYSQL_USER: test, MYSQL_DATABASE: test, MYSQL_PASSWORD: test, LANG: "C.UTF-8"}
postgres:
image: postgres:12
environment: {POSTGRES_PASSWORD: test, POSTGRES_USER: test, POSTGRES_DB: test}