-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
100 lines (92 loc) · 2.14 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: '3'
services:
postgres:
container_name: crm_postgres
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-123}
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- "5432:5432"
networks:
- postgres
restart: unless-stopped
pgadmin:
container_name: crm_pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
PGADMIN_CONFIG_SERVER_MODE: 'False'
volumes:
- pgadmin:/root/.pgadmin
ports:
- "${PGADMIN_PORT:-5050}:80"
networks:
- postgres
restart: unless-stopped
localstack:
container_name: crm_aws_s3
image: localstack/localstack
# network_mode: bridge
ports:
- "4566:4566"
- "${PORT_WEB_UI-8080}:${PORT_WEB_UI-8080}"
environment:
- SERVICES=s3
- DOCKER_HOST=unix:///var/run/docker.sock
- DEBUG=1
- DATA_DIR=${DATA_DIR- }
# AWS
- AWS_ACCESS_KEY_ID=casadodev
- AWS_SECRET_ACCESS_KEY=casadodevsecret
- AWS_DEFAULT_REGION=us-east-1
- AWS_DEFAULT_OUTPUT=json
volumes:
- "${TMPDIR:-/tmp/localstack}:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
postgres:
driver: bridge
volumes:
postgres:
pgadmin:
#networks:
# mynet:
#
#volumes:
# mariadb_data:
# phpmyadmin_data:
# mariadb:
# image: mariadb:latest
# container_name: mariadb
# environment:
# MYSQL_DATABASE: casadodev
# MYSQL_ROOT_PASSWORD: live_root
# MYSQL_USER: dag
# MYSQL_PASSWORD: 123
# volumes:
# - mariadb_data:/var/lib/mysql/
# networks:
# - mynet
# restart: on-failure:2
# ports:
# - "3306:3306"
#
# phpmyadmin:
# image: phpmyadmin/phpmyadmin:latest
# restart: on-failure:2
# container_name: phpmyadmin
# environment:
# PMA_HOST: mariadb
# ports:
# - "500:80"
# volumes:
# - phpmyadmin_data:/var/www/html/
# networks:
# - mynet
# depends_on:
# - mariadb