-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
80 lines (75 loc) · 1.77 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
version: "3.7"
networks:
dev-network:
driver: bridge
name: dev-network
volumes:
postgres-data:
pgadmin:
services:
app:
depends_on:
- postgresql
- redis
build:
context: .
tty: true
stdin_open: true
container_name: app
ports:
- "3333:3000"
restart: 'no'
command: start.sh
volumes:
- .:/var/www/html
environment:
DATABASE_HOST: postgresql
DATABASE_USER: root
DATABASE_PASSWORD: 123456
REDIS_URL_SIDEKIQ: redis://redis:6379/0
networks:
- dev-network
postgresql:
image: postgres:14
restart: 'no'
container_name: postgresql
volumes:
# Mount the DB dumps folder into the container, to be able to create & access database dumps:
- ./db/dumps:/db/dumps
# Mount out tmp folder, we might want to have access to something there during development:
- ./tmp:/tmp
# Mount our 'restoredb' script:
- ./bin/restoredb:/bin/restoredb:ro
# Mount our 'dumpdb' script:
- ./bin/dumpdb:/bin/dumpdb:ro
# We'll mount the 'postgres' volume into the location Postgres stores it's data:
- postgres-data:/var/lib/postgresql/data
ports:
- "5433:5432"
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: 123456
networks:
- dev-network
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
PGADMIN_CONFIG_SERVER_MODE: 'False'
volumes:
- pgadmin:/var/lib/pgadmin
ports:
- "5050:80"
networks:
- dev-network
restart: 'no'
redis:
image: redis
container_name: redis
restart: 'no'
ports:
- "6378:6379"
networks:
- dev-network