Skip to content

Commit 9ddcc82

Browse files
committed
fix: use annotation app in docker compose
1 parent ecf8be5 commit 9ddcc82

File tree

1 file changed

+34
-35
lines changed

1 file changed

+34
-35
lines changed

docker-compose.yml

+34-35
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,38 @@
11
services:
2-
db:
3-
image: postgis/postgis:13-master
4-
restart: always
5-
env_file:
6-
- ./.env-docker.dev
7-
ports:
8-
- 5432:5432
9-
volumes:
10-
- postgres_data:/var/lib/postgresql/data
11-
# - ./entrypoint.sh:/var/lib/postgresql/entrypoint.sh
12-
healthcheck:
13-
test: "pg_isready -h localhost -p 5432 -q -U postgres"
14-
interval: 3s
15-
timeout: 5s
16-
retries: 5
17-
adminer:
18-
image: adminer
19-
ports:
20-
- 8080:8080
21-
links:
22-
- db
23-
# app:
24-
# image: 'app:tag'
25-
# build:
26-
# context: .
27-
# dockerfile: dev.Dockerfile
28-
# ports:
29-
# - 80:80
30-
# volumes:
31-
# - .:/app
32-
# env_file:
33-
# - ./.env-docker.dev
34-
# depends_on:
35-
# - db
2+
db:
3+
image: postgis/postgis:13-master
4+
restart: always
5+
env_file:
6+
- ./.env-docker.dev
7+
ports:
8+
- 5432:5432
9+
volumes:
10+
- postgres_data:/var/lib/postgresql/data
11+
healthcheck:
12+
test: "pg_isready -h localhost -p 5432 -q -U postgres"
13+
interval: 3s
14+
timeout: 5s
15+
retries: 5
16+
adminer:
17+
image: adminer
18+
ports:
19+
- 8080:8080
20+
links:
21+
- db
22+
app:
23+
image: "app:tag"
24+
build:
25+
context: .
26+
dockerfile: dev.Dockerfile
27+
ports:
28+
- 80:80
29+
volumes:
30+
- .:/app
31+
env_file:
32+
- ./.env-docker.dev
33+
depends_on:
34+
- db
3635

3736
volumes:
3837
postgres_data:
39-
driver: local
38+
driver: local

0 commit comments

Comments
 (0)