-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
54 lines (50 loc) · 1003 Bytes
/
docker-compose.yaml
File metadata and controls
54 lines (50 loc) · 1003 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
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
version: '3'
services:
postgres:
image: postgres:14.0
restart: always
ports:
- "5433:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 1234
POSTGRES_DB: elice
volumes:
- /opt/homebrew/var/postgresql@14/data:/var/lib/postgresql/data
container_name: postgres_docker
networks:
- default
redis:
image: redis:6.2.5
restart: always
ports:
- "6379:6379"
networks:
- default
extra_hosts:
- "host.docker.internal:host-gateway"
web:
image: elice_interview:0.1
restart:
always
ports:
- "8000"
environment:
DB_HOST: postgres_docker
RDB: postgresql+asyncpg
DB_PORT: 5432
DB_NAME: elice
DB_USER: postgres
DB_PASSWORD: 1234
REDIS_HOST: host.docker.internal
depends_on:
- postgres
networks:
- default
external_links:
- redis
volumes:
postgres_data:
driver: local
networks:
default: