annotate docker-compose.yml @ 0:a17a4894f4bd draft default tip

Initial commit converting git to mercurial
author Alfred Burgess <aburgess@ucc.asn.au>
date Sun, 14 Apr 2024 19:35:23 +0800
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
1 version: '3.8'
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
2
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
3 services:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
4 db:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
5 image: postgres:latest
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
6 container_name: family_db
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
7 networks:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
8 - default
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
9 restart: always
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
10 environment:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
11 POSTGRES_DB: my_database
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
12 POSTGRES_USER: my_user
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
13 POSTGRES_PASSWORD: my_password
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
14 ports:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
15 - "5432:5432"
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
16 volumes:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
17 - db_vol:/var/lib/postgresql/
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
18 pgadmin:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
19 image: dpage/pgadmin4:latest
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
20 restart: always
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
21 container_name: my_pgadmin
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
22 environment:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
23 PGADMIN_DEFAULT_EMAIL: [email protected]
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
24 PGADMIN_DEFAULT_PASSWORD: admin_password
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
25 PGADMIN_LISTEN_PORT: 5050
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
26 ports:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
27 - "5050:5050"
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
28 depends_on:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
29 - db
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
30 volumes:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
31 - pgadmin:/var/lib/pgadmin/
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
32 backend:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
33 container_name: server
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
34 networks:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
35 - default
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
36 depends_on:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
37 - db
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
38 build:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
39 context: ./backend
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
40 dockerfile: dockerfile
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
41 ports:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
42 - "8080:8080"
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
43
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
44 networks:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
45 default:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
46
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
47 volumes:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
48 db_vol:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
49 pgadmin:
a17a4894f4bd Initial commit converting git to mercurial
Alfred Burgess <aburgess@ucc.asn.au>
parents:
diff changeset
50